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.
289 290 291 |
# File 'lib/burke.rb', line 289 def initialize plaf @platform = Gem::Platform.new plaf end |
Instance Attribute Details
#platform ⇒ Object (readonly)
Returns the value of attribute platform.
287 288 289 |
# File 'lib/burke.rb', line 287 def platform @platform end |
Instance Method Details
#after(&block) ⇒ Object
316 317 318 319 |
# File 'lib/burke.rb', line 316 def after &block @after = block if block_given? @after end |
#before(&block) ⇒ Object
311 312 313 314 |
# File 'lib/burke.rb', line 311 def before &block @before = block if block_given? @before end |
#gem_file ⇒ Object
299 300 301 |
# File 'lib/burke.rb', line 299 def gem_file "#{gemspec.full_name}.gem" end |
#gemspec ⇒ Object
293 294 295 296 297 |
# File 'lib/burke.rb', line 293 def gemspec spec = Burke.base_gemspec.dup spec.platform = @platform spec end |
#package_dir ⇒ Object
307 308 309 |
# File 'lib/burke.rb', line 307 def package_dir Burke.settings.gems.package_dir end |
#task_name ⇒ Object
303 304 305 |
# File 'lib/burke.rb', line 303 def task_name "gem:#{platform}" end |