Class: Kubes::CLI::New::Variable

Inherits:
Sequence
  • Object
show all
Defined in:
lib/kubes/cli/new/variable.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Logging

#logger

Class Method Details

.optionsObject



3
4
5
6
7
# File 'lib/kubes/cli/new/variable.rb', line 3

def self.options
  [
    [:force, aliases: ["y"], type: :boolean, desc: "Bypass overwrite are you sure prompt for existing files"],
  ]
end

Instance Method Details

#create_helperObject



10
11
12
13
14
# File 'lib/kubes/cli/new/variable.rb', line 10

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