Class: FalkorLib::CLI::New
- Inherits:
-
Thor
- Object
- Thor
- FalkorLib::CLI::New
- Defined in:
- lib/falkorlib/cli/new.rb
Overview
Thor class for all bootstrapping / initialization
Instance Method Summary collapse
- #motd(path = '.') ⇒ Object
- #readme(path = '.') ⇒ Object
-
#repo(name = '.') ⇒ Object
method_option :pyenv, :type => :boolean, :desc => “Initiate a pyenv-based Python project” method_option :octopress, :aliases => [‘-o’, ‘–www’], :type => :boolean, :desc => “Initiate an Octopress web site” _.
-
#rvm(path = '.') ⇒ Object
__.
-
#trash(path = Dir.pwd) ⇒ Object
__.
-
#versionfile(path = '.') ⇒ Object
_.
Instance Method Details
#motd(path = '.') ⇒ Object
116 117 118 |
# File 'lib/falkorlib/cli/new.rb', line 116 def motd(path = '.') FalkorLib::Bootstrap.motd(path, ) end |
#readme(path = '.') ⇒ Object
132 133 134 |
# File 'lib/falkorlib/cli/new.rb', line 132 def readme(path = '.') FalkorLib::Bootstrap.readme(path, ) end |
#repo(name = '.') ⇒ Object
method_option :pyenv, :type => :boolean, :desc => “Initiate a pyenv-based Python project” method_option :octopress, :aliases => [‘-o’, ‘–www’], :type => :boolean, :desc => “Initiate an Octopress web site” _
54 55 56 57 58 |
# File 'lib/falkorlib/cli/new.rb', line 54 def repo(name = '.') [:rvm] = true if [:rake] or [:gem] # _newrepo(name, options) FalkorLib::Bootstrap.repo(name, ) end |
#rvm(path = '.') ⇒ Object
__
88 89 90 |
# File 'lib/falkorlib/cli/new.rb', line 88 def rvm(path = '.') FalkorLib::Bootstrap.rvm(path, ) end |
#trash(path = Dir.pwd) ⇒ Object
__
64 65 66 |
# File 'lib/falkorlib/cli/new.rb', line 64 def trash(path = Dir.pwd) FalkorLib::Bootstrap.trash(path) end |
#versionfile(path = '.') ⇒ Object
_
101 102 103 |
# File 'lib/falkorlib/cli/new.rb', line 101 def versionfile(path = '.') FalkorLib::Bootstrap.versionfile(path, ) end |