Module: Beso::Config::ClassMethods
- Defined in:
- lib/beso/config.rb
Instance Method Summary collapse
- #configure {|_self| ... } ⇒ Object
- #job(name, options, &block) ⇒ Object
- #jobs ⇒ Object
- #reset! ⇒ Object
Instance Method Details
#configure {|_self| ... } ⇒ Object
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, , &block ) job = Job.new( name, ) job.instance_eval &block if block_given? jobs << job end |
#jobs ⇒ Object
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 |