Class: FalkorLib::CLI::New

Inherits:
Thor
  • Object
show all
Defined in:
lib/falkorlib/cli/new.rb

Overview

Thor class for all bootstrapping / initialization

Instance Method Summary collapse

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, options)
end

#motd(path = '.') ⇒ Object



149
150
151
# File 'lib/falkorlib/cli/new.rb', line 149

def motd(path = '.')
    FalkorLib::Bootstrap.motd(path, options)
end

#readme(path = '.') ⇒ Object



165
166
167
# File 'lib/falkorlib/cli/new.rb', line 165

def readme(path = '.')
    FalkorLib::Bootstrap.readme(path, options)
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 = '.')
    options[:rvm] = true if options[:rake] or options[:gem]
    # _newrepo(name, options)
    FalkorLib::Bootstrap.repo(name, options)
end

#rvm(path = '.') ⇒ Object

__



121
122
123
# File 'lib/falkorlib/cli/new.rb', line 121

def rvm(path = '.')
    FalkorLib::Bootstrap.rvm(path, options)
end

#slides(path = Dir.pwd) ⇒ Object

_



90
91
92
# File 'lib/falkorlib/cli/new.rb', line 90

def slides(path = Dir.pwd)
    FalkorLib::Bootstrap.latex(path, :beamer, options)
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, options)
end