Class: GNOME::Rake::PackageTask::DependencyConfiguration

Inherits:
Object
  • Object
show all
Defined in:
lib/gnome/rake/package-task.rb

Defined Under Namespace

Classes: GemConfiguration

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(package) ⇒ DependencyConfiguration

Returns a new instance of DependencyConfiguration.



175
176
177
178
179
# File 'lib/gnome/rake/package-task.rb', line 175

def initialize(package)
  @package = package
  @platform = Gem::Platform::RUBY
  @gem_configuration = GemConfiguration.new(@package)
end

Instance Attribute Details

#platformObject

Returns the value of attribute platform.



174
175
176
# File 'lib/gnome/rake/package-task.rb', line 174

def platform
  @platform
end

#rubyObject

Returns the value of attribute ruby.



174
175
176
# File 'lib/gnome/rake/package-task.rb', line 174

def ruby
  @ruby
end

Instance Method Details

#apply(spec) ⇒ Object



185
186
187
188
# File 'lib/gnome/rake/package-task.rb', line 185

def apply(spec)
  spec.platform = @platform
  @gem_configuration.apply(spec)
end

#gemObject



181
182
183
# File 'lib/gnome/rake/package-task.rb', line 181

def gem
  @gem_configuration
end