Class: Kubes::CLI::New::Helper

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

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Logging

#logger

Class Method Details

.optionsObject



5
6
7
8
9
# File 'lib/kubes/cli/new/helper.rb', line 5

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

Instance Method Details

#create_helperObject



18
19
20
21
22
# File 'lib/kubes/cli/new/helper.rb', line 18

def create_helper
  set_source("new/helper")
  file = "#{underscored_name}.rb"
  template "file.rb", ".kubes/helpers/#{file}"
end