class ECSBundler::ProjectSpecification

Public Instance Methods

description() click to toggle source
# File lib/ecs_bundler/project_specification.rb, line 11
def description; end
homepage() click to toggle source
# File lib/ecs_bundler/project_specification.rb, line 15
def homepage; end
license() click to toggle source
# File lib/ecs_bundler/project_specification.rb, line 13
def license; end
name() click to toggle source
# 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() click to toggle source
# File lib/ecs_bundler/project_specification.rb, line 25
def runtime_dependencies
  Bundler.load.current_dependencies
end
version() click to toggle source
# 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