Class: Burke::GemSettings::IndividualGemSettings

Inherits:
Object
  • Object
show all
Defined in:
lib/burke.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#platformObject (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_fileObject



343
344
345
# File 'lib/burke.rb', line 343

def gem_file
  "#{gemspec.full_name}.gem"
end

#gemspecObject



337
338
339
340
341
# File 'lib/burke.rb', line 337

def gemspec
  spec = Burke.base_gemspec.dup
  spec.platform = @platform
  spec
end

#package_dirObject



351
352
353
# File 'lib/burke.rb', line 351

def package_dir
  Burke.settings.gems.package_dir
end

#task_nameObject



347
348
349
# File 'lib/burke.rb', line 347

def task_name
  "gem:#{platform}"
end