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
-
#letter(path = Dir.pwd) ⇒ Object
_.
- #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
__.
-
#slides(path = Dir.pwd) ⇒ Object
_.
-
#trash(path = Dir.pwd) ⇒ Object
__.
-
#versionfile(path = '.') ⇒ Object
_.
Instance Method Details
#letter(path = Dir.pwd) ⇒ Object
_
78 79 80 |
# File 'lib/falkorlib/cli/new.rb', line 78 def letter(path = Dir.pwd) FalkorLib::Bootstrap.latex(path, :letter, ) end |
#motd(path = '.') ⇒ Object
149 150 151 |
# File 'lib/falkorlib/cli/new.rb', line 149 def motd(path = '.') FalkorLib::Bootstrap.motd(path, ) end |
#readme(path = '.') ⇒ Object
165 166 167 |
# File 'lib/falkorlib/cli/new.rb', line 165 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
__
121 122 123 |
# File 'lib/falkorlib/cli/new.rb', line 121 def rvm(path = '.') FalkorLib::Bootstrap.rvm(path, ) end |
#slides(path = Dir.pwd) ⇒ Object
_
90 91 92 |
# File 'lib/falkorlib/cli/new.rb', line 90 def (path = Dir.pwd) FalkorLib::Bootstrap.latex(path, :beamer, ) end |
#trash(path = Dir.pwd) ⇒ Object
__
97 98 99 |
# File 'lib/falkorlib/cli/new.rb', line 97 def trash(path = Dir.pwd) FalkorLib::Bootstrap.trash(path) end |
#versionfile(path = '.') ⇒ Object
_
134 135 136 |
# File 'lib/falkorlib/cli/new.rb', line 134 def versionfile(path = '.') FalkorLib::Bootstrap.versionfile(path, ) end |