Class: Cuprum::Cli::Commands::File::GenerateFile

Inherits:
Cuprum::Command
  • Object
show all
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

Methods included from Options::ClassMethods

option, option_value, option_values, resolve_options

Methods included from Options::Verbose

#say

Methods included from Options::Quiet

#say

Methods included from Dependencies::StandardIo::Helpers

#ask, #say, #warn

Constructor Details

#initialize(**options) ⇒ GenerateFile

Returns a new instance of GenerateFile.

Parameters:

  • options (Hash)

    options for initializing the command.



34
35
36
37
38
# File 'lib/cuprum/cli/commands/file/generate_file.rb', line 34

def initialize(**)
  super()

  @options = self.class.resolve_options(**)
end