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

#motd(path = '.') ⇒ Object



125
126
127
# File 'lib/falkorlib/cli/new.rb', line 125

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

#readme(path = '.') ⇒ Object



141
142
143
# File 'lib/falkorlib/cli/new.rb', line 141

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

__



97
98
99
# File 'lib/falkorlib/cli/new.rb', line 97

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

#slides(path = Dir.pwd) ⇒ Object

_



66
67
68
# File 'lib/falkorlib/cli/new.rb', line 66

def slides(path = Dir.pwd)
    FalkorLib::Bootstrap.latex(path, :beamer, options)
end

#trash(path = Dir.pwd) ⇒ Object

__



73
74
75
# File 'lib/falkorlib/cli/new.rb', line 73

def trash(path = Dir.pwd)
    FalkorLib::Bootstrap.trash(path)
end

#versionfile(path = '.') ⇒ Object

_



110
111
112
# File 'lib/falkorlib/cli/new.rb', line 110

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