Class: Takelage::InitTakelage
- Inherits:
-
SubCommandBase
- Object
- Thor
- SubCommandBase
- Takelage::InitTakelage
- Includes:
- BitCheckWorkspace, BitClipboardCopy, BitClipboardLib, BitClipboardPaste, BitRequireImport, BitRequireLib, ConfigModule, GitCheckBit, GitCheckClean, GitCheckWorkspace, InitLib, InitTakelageRake, LoggingModule, ProjectModule, SystemModule, Thor::Actions
- Defined in:
- lib/takelage/init/takelage/cli.rb
Overview
takelage init takelage
Class Method Summary collapse
-
.source_root ⇒ Object
Provide template path for Thor:Actions.
Instance Method Summary collapse
-
#initialize(args = [], local_options = {}, configuration = {}) ⇒ InitTakelage
constructor
Initialize bit require Define templates rubocop:disable Metrics/MethodLength.
-
#rake ⇒ Object
Initialize takelage rake project [NAME].
Methods included from InitTakelageRake
Methods included from BitRequireImport
Methods included from BitClipboardPaste
Methods included from BitClipboardCopy
Methods included from BitCheckWorkspace
Methods included from GitCheckWorkspace
Methods included from GitCheckBit
Methods included from GitCheckClean
Methods included from ProjectModule
Methods included from ConfigModule
#config, #configured?, #initialize_config
Methods included from SystemModule
#command_available_else_error?, #command_available_else_warn?, #hash_to_yaml, #read_yaml_erb_file, #read_yaml_file, #rm_fr, #run, #run_and_capture, #run_and_exit, #run_and_fork, #try
Methods included from LoggingModule
Methods inherited from SubCommandBase
Constructor Details
#initialize(args = [], local_options = {}, configuration = {}) ⇒ InitTakelage
Initialize bit require Define templates rubocop:disable Metrics/MethodLength
28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 |
# File 'lib/takelage/init/takelage/cli.rb', line 28 def initialize(args = [], = {}, configuration = {}) # initialize thor parent class super args, , configuration @bit_require_file = config.active['bit_require_file'] @bitrequireyml = { name: 'bitrequire.yml', template: 'templates/bitrequireyml.tt' } @gitignore = { name: '.gitignore', template: '../templates/gitignore.tt' } @projectyml = { name: 'project.yml', template: 'templates/projectyml.tt' } @rakefile = { name: 'Rakefile', template: '../templates/Rakefile.tt' } end |
Class Method Details
.source_root ⇒ Object
Provide template path for Thor:Actions
54 55 56 |
# File 'lib/takelage/init/takelage/cli.rb', line 54 def self.source_root File.dirname(__FILE__) end |
Instance Method Details
#rake ⇒ Object
Initialize takelage rake project [NAME].
66 67 68 |
# File 'lib/takelage/init/takelage/cli.rb', line 66 def rake exit init_takelage_rake end |