Class: Kubes::CLI::New::Helper
- Defined in:
- lib/kubes/cli/new/helper.rb
Class Method Summary collapse
Instance Method Summary collapse
Methods included from Logging
Class Method Details
.options ⇒ Object
5 6 7 8 9 |
# File 'lib/kubes/cli/new/helper.rb', line 5 def self. [ [:force, aliases: ["y"], type: :boolean, desc: "Bypass overwrite are you sure prompt for existing files"], ] end |
Instance Method Details
#create_helper ⇒ Object
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 |