lib/crosstie/base.rb in crosstie-0.0.6 vs lib/crosstie/base.rb in crosstie-0.0.7

- old
+ new

@@ -13,12 +13,27 @@ File.read File.join root, "templates", *path end def perform task eval File.read File.join root, "templates", "#{task}.rb" +rescue => e + puts "error on performing #{task}" + raise e end +def config + return @config if @config + config_path = '/tmp/crosstie/config.yml' + if File.exist? config_path + @config = YAML.load(File.read(config_path)) + File.delete config_path + else + @config = {} + end + @config +end + perform :git_init perform :change_source perform :install_gems perform :bundle_install perform :add_gitignore @@ -32,17 +47,20 @@ perform :active_job perform :simple_form perform :rspec perform :guard perform :static_pages +perform :web_console perform :devise perform :rails_layout # authform for device perform :user # perform :ldap # who needs this perform :controller_helpers perform :authentication_token perform :rolify perform :authorization -perform :seeds +perform :helper perform :resources +perform :seeds git_commit "project created" perform :run_test +perform :run_seeds