Sha256: d873c64af621cad551754fdd7c43fa5cdf2155a4b689845a2037013a82ef46b5

Contents?: true

Size: 540 Bytes

Versions: 15

Compression:

Stored size: 540 Bytes

Contents

module Lono
  class Configset < Command
    long_desc Help.text("configset/new")
    New.cli_options.each do |args|
      option(*args)
    end
    register(New, "new", "new NAME", "Generates new lono configset.")

    desc "generate", "Generate configset from DSL"
    long_desc Help.text(:generate)
    option :resource, default: "PretendResource", desc: "Set the @resource instance variable availalbe in the configset"
    def generate(configset)
      Generator.new(options.merge(configset: configset, cli: true)).run
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
lono-7.5.2 lib/lono/configset.rb
lono-7.5.1 lib/lono/configset.rb
lono-7.5.0 lib/lono/configset.rb
lono-7.4.11 lib/lono/configset.rb
lono-7.4.10 lib/lono/configset.rb
lono-7.4.9 lib/lono/configset.rb
lono-7.4.8 lib/lono/configset.rb
lono-7.4.7 lib/lono/configset.rb
lono-7.4.6 lib/lono/configset.rb
lono-7.4.5 lib/lono/configset.rb
lono-7.4.4 lib/lono/configset.rb
lono-7.4.3 lib/lono/configset.rb
lono-7.4.2 lib/lono/configset.rb
lono-7.4.1 lib/lono/configset.rb
lono-7.4.0 lib/lono/configset.rb