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
30 31 32 33 |
# File 'lib/esruby.rb', line 30 def self.build ESRuby::Build.build.build nil end |
.clean ⇒ Object
24 25 26 27 28 |
# File 'lib/esruby.rb', line 24 def self.clean build = ESRuby::Build.build FileUtils.rm_rf(build.build_directory) nil end |
.gem_directory ⇒ Object
14 15 16 |
# File 'lib/esruby.rb', line 14 def self.gem_directory "#{File.dirname(__FILE__)}/.." end |
.new(project_path) ⇒ Object
18 19 20 21 22 |
# File 'lib/esruby.rb', line 18 def self.new(project_path) FileUtils.mkdir_p(project_path) FileUtils.cp_r("#{gem_directory}/resources/project_template/.", project_path) nil end |