class Rgentpl::Command::Generate

Generate group command

General command

Constants

APP_PATH_DESC

Application path description

CTAGS_DESC

CTags description

Attributes

app_path[RW]

@return [String] the final install application path

ctags[RW]

@return [String] the ctags full binary path

Public Class Methods

source_root() click to toggle source

@return [String] the application path root

# File lib/rgentpl/command/generate.rb, line 27
def self.source_root
  TEMPLATE_ROOT
end

Public Instance Methods

add_perms() click to toggle source

@return [void]

# File lib/rgentpl/command/generate.rb, line 49
def add_perms
  chmod("#{@app_path.chomp('/')}/#{app_name}/bin/#{app_name}", 0755)
end
create_app() click to toggle source

@return [void]

# File lib/rgentpl/command/generate.rb, line 42
def create_app
  @app_path = options['app_path']
  @ctags    = options['ctags']
  directory('src', "#{@app_path.chomp('/')}/#{app_name}")
end
git() click to toggle source

@return [void]

# File lib/rgentpl/command/generate.rb, line 54
def git
  inside("#{app_path}/#{app_name}") do
    run('git init')
    run('git add .')
    run('git commit -am "First sending."')
    run('git checkout -b develop')
    run('git checkout -b feature-domain-logic')
  end
end