Class: Burke::GemSettings::IndividualGemSettings
- Inherits:
-
Object
- Object
- Burke::GemSettings::IndividualGemSettings
- Defined in:
- lib/burke.rb
Instance Attribute Summary collapse
-
#platform ⇒ Object
readonly
Returns the value of attribute platform.
Instance Method Summary collapse
- #after(&block) ⇒ Object
- #before(&block) ⇒ Object
- #gem_file ⇒ Object
- #gemspec ⇒ Object
-
#initialize(plaf) ⇒ IndividualGemSettings
constructor
A new instance of IndividualGemSettings.
- #package_dir ⇒ Object
- #task_name ⇒ Object
Constructor Details
#initialize(plaf) ⇒ IndividualGemSettings
Returns a new instance of IndividualGemSettings.
333 334 335 |
# File 'lib/burke.rb', line 333 def initialize plaf @platform = Gem::Platform.new plaf end |
Instance Attribute Details
#platform ⇒ Object (readonly)
Returns the value of attribute platform.
331 332 333 |
# File 'lib/burke.rb', line 331 def platform @platform end |
Instance Method Details
#after(&block) ⇒ Object
360 361 362 363 |
# File 'lib/burke.rb', line 360 def after &block @after = block if block_given? @after end |
#before(&block) ⇒ Object
355 356 357 358 |
# File 'lib/burke.rb', line 355 def before &block @before = block if block_given? @before end |
#gem_file ⇒ Object
343 344 345 |
# File 'lib/burke.rb', line 343 def gem_file "#{gemspec.full_name}.gem" end |
#gemspec ⇒ Object
337 338 339 340 341 |
# File 'lib/burke.rb', line 337 def gemspec spec = Burke.base_gemspec.dup spec.platform = @platform spec end |
#package_dir ⇒ Object
351 352 353 |
# File 'lib/burke.rb', line 351 def package_dir Burke.settings.gems.package_dir end |
#task_name ⇒ Object
347 348 349 |
# File 'lib/burke.rb', line 347 def task_name "gem:#{platform}" end |