Class: ECSBundler::ProjectSpecification
- Inherits:
-
Object
- Object
- ECSBundler::ProjectSpecification
- Defined in:
- lib/ecs_bundler/project_specification.rb
Instance Method Summary collapse
- #description ⇒ Object
- #homepage ⇒ Object
- #license ⇒ Object
- #name ⇒ Object
- #runtime_dependencies ⇒ Object
- #version ⇒ Object
Instance Method Details
#description ⇒ Object
11 |
# File 'lib/ecs_bundler/project_specification.rb', line 11 def description; end |
#homepage ⇒ Object
15 |
# File 'lib/ecs_bundler/project_specification.rb', line 15 def homepage; end |
#license ⇒ Object
13 |
# File 'lib/ecs_bundler/project_specification.rb', line 13 def license; end |
#name ⇒ Object
6 7 8 9 |
# File 'lib/ecs_bundler/project_specification.rb', line 6 def name return Rails.application.class.parent.name if defined?(Rails) ECSBundler.config[:project].gsub(/[^a-zA-Z]+/, '-') end |
#runtime_dependencies ⇒ Object
25 26 27 |
# File 'lib/ecs_bundler/project_specification.rb', line 25 def runtime_dependencies Bundler.load.current_dependencies end |
#version ⇒ Object
17 18 19 20 21 22 23 |
# File 'lib/ecs_bundler/project_specification.rb', line 17 def version path = [ (Rails.root.join('VERSION') if defined?(Rails)), "#{Dir.pwd}/VERSION" ].compact.find { |path| File.exist?(path) } path ? File.read(path) : nil end |