Class: Cuprum::Cli::Commands::File::GenerateFile
- Inherits:
-
Cuprum::Command
- Object
- Cuprum::Command
- Cuprum::Cli::Commands::File::GenerateFile
- Extended by:
- Options::ClassMethods
- Includes:
- Dependencies::StandardIo::Helpers, Options::Quiet, Options::Verbose, Plumbum::Consumer, Plumbum::Parameters
- Defined in:
- lib/cuprum/cli/commands/file/generate_file.rb
Overview
Utility command for generating a file from a template.
Constant Summary
Constants included from Dependencies::StandardIo::Helpers
Dependencies::StandardIo::Helpers::FALSY_VALUES, Dependencies::StandardIo::Helpers::INTEGER_PATTERN, Dependencies::StandardIo::Helpers::TRUTHY_VALUES
Instance Method Summary collapse
-
#initialize(**options) ⇒ GenerateFile
constructor
A new instance of GenerateFile.
Methods included from Options::ClassMethods
option, option_value, option_values, resolve_options
Methods included from Options::Verbose
Methods included from Options::Quiet
Methods included from Dependencies::StandardIo::Helpers
Constructor Details
#initialize(**options) ⇒ GenerateFile
Returns a new instance of GenerateFile.
34 35 36 37 38 |
# File 'lib/cuprum/cli/commands/file/generate_file.rb', line 34 def initialize(**) super() @options = self.class.(**) end |