Module: Plugit
- Defined in:
- lib/plugit/version.rb,
lib/plugit.rb,
lib/plugit/library.rb,
lib/plugit/descriptor.rb,
lib/plugit/environment.rb
Overview
:nodoc:
Defined Under Namespace
Modules: VERSION Classes: Descriptor, Environment, EnvironmentBuilder, Library, UndefinedEnvironmentError
Class Method Summary collapse
Class Method Details
.describe(&block) ⇒ Object
6 7 8 9 10 11 12 13 |
# File 'lib/plugit.rb', line 6 def self.describe(&block) ENV['PLUGIT_ENV'] ||= 'default' descriptor = Descriptor.new block.call(descriptor) descriptor.install_environment(ENV['PLUGIT_ENV']) rescue UndefinedEnvironmentError puts %Q{No environment named "#{ENV['PLUGIT_ENV']}". Use one of #{descriptor.environments.collect {|e| e.name.to_s}.inspect}.} end |