class DCA::CLI

Public Class Methods

source_root() click to toggle source
# File lib/dca/cli.rb, line 7
def self.source_root
  File.expand_path('../commands/templates', __FILE__)
end

Public Instance Methods

config() click to toggle source
# File lib/dca/cli.rb, line 12
def config
  empty_directory 'config'
  template 'config.yml.erb', 'config/config.yml'
end
install() click to toggle source
# File lib/dca/cli.rb, line 21
def install
  project = "#{DCA.project_name}::Project".constantize
  project.install
end
uninstall() click to toggle source
# File lib/dca/cli.rb, line 27
def uninstall
  project = "#{DCA.project_name}::Project".constantize
  project.remove
end