Module: ESRuby
- Defined in:
- lib/esruby.rb,
lib/esruby/gem.rb,
lib/esruby/build.rb,
lib/esruby/gem/specification.rb,
lib/esruby/build/configuration.rb
Defined Under Namespace
Class Method Summary collapse
Class Method Details
.build ⇒ Object
29 30 31 32 |
# File 'lib/esruby.rb', line 29 def self.build ESRuby::Build.build.build nil end |
.clean ⇒ Object
23 24 25 26 27 |
# File 'lib/esruby.rb', line 23 def self.clean build = ESRuby::Build.build FileUtils.rm_rf(build.build_directory) nil end |
.gem_directory ⇒ Object
13 14 15 |
# File 'lib/esruby.rb', line 13 def self.gem_directory "#{File.dirname(__FILE__)}/.." end |
.new(project_path) ⇒ Object
17 18 19 20 21 |
# File 'lib/esruby.rb', line 17 def self.new(project_path) FileUtils.mkdir_p(project_path) FileUtils.cp_r("#{gem_directory}/resources/project_template/.", project_path) nil end |