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.



289
290
291
# File 'lib/burke.rb', line 289

def initialize plaf
  @platform = Gem::Platform.new plaf
end

Instance Attribute Details

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



299
300
301
# File 'lib/burke.rb', line 299

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

#gemspecObject



293
294
295
296
297
# File 'lib/burke.rb', line 293

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

#package_dirObject



307
308
309
# File 'lib/burke.rb', line 307

def package_dir
  Burke.settings.gems.package_dir
end

#task_nameObject



303
304
305
# File 'lib/burke.rb', line 303

def task_name
  "gem:#{platform}"
end