Class: Furious::Job

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

Direct Known Subclasses

Package, Push, Tag

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(file) ⇒ Job

Returns a new instance of Job.



5
6
7
8
9
10
# File 'lib/furious/job.rb', line 5

def initialize(file)
  fail ArgumentError, 'No gemspec file given' if file.nil?

  @file = file
  @spec = Gem::Specification.load(file)
end

Instance Attribute Details

#fileObject (readonly)

Returns the value of attribute file.



3
4
5
# File 'lib/furious/job.rb', line 3

def file
  @file
end

#specObject (readonly)

Returns the value of attribute spec.



3
4
5
# File 'lib/furious/job.rb', line 3

def spec
  @spec
end