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



116
117
118
# File 'lib/falkorlib/cli/new.rb', line 116

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

#readme(path = '.') ⇒ Object



132
133
134
# File 'lib/falkorlib/cli/new.rb', line 132

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

__



88
89
90
# File 'lib/falkorlib/cli/new.rb', line 88

def rvm(path = '.')
    FalkorLib::Bootstrap.rvm(path, options)
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, options)
end