Class: GNOME2::Rake::PackageTask::DependencyConfiguration
- Inherits:
-
Object
- Object
- GNOME2::Rake::PackageTask::DependencyConfiguration
- Defined in:
- lib/gnome2/rake/package-task.rb
Defined Under Namespace
Classes: GemConfiguration
Instance Attribute Summary collapse
-
#platform ⇒ Object
Returns the value of attribute platform.
-
#ruby ⇒ Object
Returns the value of attribute ruby.
Instance Method Summary collapse
- #apply(spec) ⇒ Object
- #gem ⇒ Object
-
#initialize(package) ⇒ DependencyConfiguration
constructor
A new instance of DependencyConfiguration.
Constructor Details
#initialize(package) ⇒ DependencyConfiguration
Returns a new instance of DependencyConfiguration.
230 231 232 233 234 |
# File 'lib/gnome2/rake/package-task.rb', line 230 def initialize(package) @package = package @platform = Gem::Platform::RUBY @gem_configuration = GemConfiguration.new(@package) end |
Instance Attribute Details
#platform ⇒ Object
Returns the value of attribute platform.
229 230 231 |
# File 'lib/gnome2/rake/package-task.rb', line 229 def platform @platform end |
#ruby ⇒ Object
Returns the value of attribute ruby.
229 230 231 |
# File 'lib/gnome2/rake/package-task.rb', line 229 def ruby @ruby end |
Instance Method Details
#apply(spec) ⇒ Object
240 241 242 243 |
# File 'lib/gnome2/rake/package-task.rb', line 240 def apply(spec) spec.platform = @platform @gem_configuration.apply(spec) end |
#gem ⇒ Object
236 237 238 |
# File 'lib/gnome2/rake/package-task.rb', line 236 def gem @gem_configuration end |