Sha256: 1978d506dd982c3a8390730be0833cde084d3aff4b4af95d5047b4b02944206b
Contents?: true
Size: 1.11 KB
Versions: 4
Compression:
Stored size: 1.11 KB
Contents
class Jets::CLI::Waf class Init < Jets::CLI::Group::Base include Jets::Util::Sure 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 cli_options.each { |args| class_option(*args) } source_root "#{__dir__}/templates" private def sure_message <<~EOL This will create a config/jets/waf.rb file with initial waf settings. The waf is designed to be a shared resource used by multiple projects. Having a separate project that manages the waf stack may make sense. Please make sure you have backed up and committed your changes first. EOL end public def are_you_sure? return if options[:yes] sure?(sure_message) end # https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-source.html#cfn-codebuild-project-source-type def config_jets_ci template "waf.rb.tt", "config/jets/waf.rb" end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
jets-6.0.5 | lib/jets/cli/waf/init.rb |
jets-6.0.4 | lib/jets/cli/waf/init.rb |
jets-6.0.3 | lib/jets/cli/waf/init.rb |
jets-6.0.2 | lib/jets/cli/waf/init.rb |