Skip to content
This repository has been archived by the owner on Mar 8, 2022. It is now read-only.

(proof of concept) install.go: replace lua with ruby #170

Closed
wants to merge 2 commits into from

Conversation

SeekingMeaning
Copy link
Contributor

@SeekingMeaning SeekingMeaning commented Aug 1, 2020

Example food aks-engine.rb using ruby DSL:
https://gist.github.com/SeekingMeaning/8b81f7a1fbbacfab68889f95ab1bd5f0

food do
  name 'aks-engine'
  description 'Azure Kubernetes Engine - a place for the community to collaborate and build the best Kubernetes infrastructure for Azure'
  license 'MIT'
  homepage 'https://github.com/Azure/aks-engine'
  version '0.53.0'

  package do
    os 'darwin'
    arch 'amd64'
    url "https://github.com/Azure/#{name}/releases/download/v#{version}/#{name}-v#{version}-#{os}-#{arch}.tar.gz"
    sha256 '9753ae612760d1572fb77e12c5c365202aa18d98a1c8c6dd433b911f4a3fa320'
    resource do
      path "#{name}-v#{version}-#{os}-#{arch}/#{name}"
      installpath "bin/#{name}"
      executable true
    end
  end

  ...

Example ruby food gofish.rb:
https://gist.github.com/SeekingMeaning/816462e3f66c961303208a2ac0c9e7b5

Example food using mitchellh/go-mruby#78 syntax:
https://gist.github.com/SeekingMeaning/8c701210400bd27edfaa06603a97ba9b

Note: This pull request is mostly just a proof of concept

@bacongobbler
Copy link
Contributor

Why are you doing this?

@SeekingMeaning
Copy link
Contributor Author

SeekingMeaning commented Aug 1, 2020

For fun 😛

@SeekingMeaning SeekingMeaning force-pushed the ruby branch 3 times, most recently from 440ec13 to bed516e Compare August 2, 2020 19:04
@SeekingMeaning
Copy link
Contributor Author

Closing this as it isn't a serious proposal, but I'm always open to discussion; feel free to comment here if you ever come back to this

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants