Module: Beso::Config::ClassMethods

Defined in:
lib/beso/config.rb

Instance Method Summary collapse

Instance Method Details

#configure {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:



10
11
12
# File 'lib/beso/config.rb', line 10

def configure
  yield self
end

#job(name, options, &block) ⇒ Object



19
20
21
22
23
# File 'lib/beso/config.rb', line 19

def job( name, options, &block )
  job = Job.new( name, options )
  job.instance_eval &block if block_given?
  jobs << job
end

#jobsObject



25
26
27
# File 'lib/beso/config.rb', line 25

def jobs
  @@jobs ||= [ ]
end

#reset!Object



29
30
31
32
33
34
35
# File 'lib/beso/config.rb', line 29

def reset!
  @@jobs        = [ ]
  @@access_key  = nil
  @@secret_key  = nil
  @@bucket_name = nil
  @@aws_region  = nil
end