Sha256: bab09133efacdcf4430619de511ba2d972e19e4da806ee5c899f63bd3499364a

Contents?: true

Size: 428 Bytes

Versions: 35

Compression:

Stored size: 428 Bytes

Contents

class Kubes::CLI::New
  class Variable < Kubes::CLI::Sequence
    def self.options
      [
        [:force, aliases: ["y"], type: :boolean, desc: "Bypass overwrite are you sure prompt for existing files"],
      ]
    end
    options.each { |args| class_option(*args) }

    def create_helper
      set_source("new/variable")
      file = "#{Kubes.env}.rb"
      template "file.rb", ".kubes/variables/#{file}"
    end
  end
end

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
kubes-0.7.5 lib/kubes/cli/new/variable.rb
kubes-0.7.4 lib/kubes/cli/new/variable.rb
kubes-0.7.3 lib/kubes/cli/new/variable.rb
kubes-0.7.2 lib/kubes/cli/new/variable.rb
kubes-0.7.1 lib/kubes/cli/new/variable.rb
kubes-0.7.0 lib/kubes/cli/new/variable.rb
kubes-0.6.8 lib/kubes/cli/new/variable.rb
kubes-0.6.7 lib/kubes/cli/new/variable.rb
kubes-0.6.6 lib/kubes/cli/new/variable.rb
kubes-0.6.5 lib/kubes/cli/new/variable.rb
kubes-0.6.4 lib/kubes/cli/new/variable.rb
kubes-0.6.3 lib/kubes/cli/new/variable.rb
kubes-0.6.2 lib/kubes/cli/new/variable.rb
kubes-0.6.1 lib/kubes/cli/new/variable.rb
kubes-0.6.0 lib/kubes/cli/new/variable.rb