Class: Eris::Tasks
- Inherits:
-
Thor
- Object
- Thor
- Eris::Tasks
- Includes:
- Thor::Actions
- Defined in:
- lib/eris.rb,
lib/eris/tasks/server.rb,
lib/eris/tasks/generate.rb
Constant Summary collapse
- @@source_root =
File.join(File.dirname(__FILE__), '..')
Instance Method Summary collapse
Instance Method Details
#generate ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/eris/tasks/generate.rb', line 6 def generate #template "lib/eris/templates/Gemfile",'Gemfile' #template "lib/eris/templates/Rakefile",'Rakefile' #template "lib/eris/templates/jasmine.yml", "spec/unit/support/jasmine.yml" #template "lib/eris/templates/sampleSpec.js", "spec/unit/source/sampleSpec.js" directory "lib/eris/templates/sample_app", "." create_file ".rvmrc", "rvm use ruby-1.9.2-p180@palm" #template "lib/eris/templates/ci_build.sh", "ci_build.sh" chmod "ci_build.sh", 0755 #template "lib/eris/templates/eris_config.json", "eris_config.json" empty_directory "spec/unit/source/mock" empty_directory "spec/helpers/testResponses" #template "lib/eris/templates/specHelper.js", "spec/unit/specHelper.js" end |
#server ⇒ Object
8 9 10 11 12 |
# File 'lib/eris/tasks/server.rb', line 8 def server port = [:port] puts "Starting Eris on port #{port}" exec("rackup -p #{port} #{@@source_root}/lib/eris/eris.ru") end |