Class: Jets::CLI::Waf::Init
Class Method Summary
collapse
Instance Method Summary
collapse
#class_name, #framework, #init_project_name, #package_type, #underscore_name
#comment_out_line, #config_environment, #environment, #optimize_indentation
Class Method Details
.cli_options ⇒ Object
5
6
7
8
9
10
|
# File 'lib/jets/cli/waf/init.rb', line 5
def self.cli_options
[
[:force, aliases: :f, type: :boolean, desc: "Bypass overwrite are you sure prompt for existing files"],
[:yes, aliases: :y, type: :boolean, desc: "Skip are you sure prompt"]
]
end
|
Instance Method Details
#are_you_sure? ⇒ Boolean
30
31
32
33
|
# File 'lib/jets/cli/waf/init.rb', line 30
def are_you_sure?
return if options[:yes]
sure?(sure_message)
end
|
#config_jets_ci ⇒ Object
36
37
38
|
# File 'lib/jets/cli/waf/init.rb', line 36
def config_jets_ci
template "waf.rb.tt", "config/jets/waf.rb"
end
|