Class: Hawk::DSL

Inherits:
Object
  • Object
show all
Includes:
Builder::DSL, Notifier::DSL, S3Uploader::DSL
Defined in:
lib/hawk/dsl.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Notifier::DSL

#email_body, #email_subject, #user

Methods included from S3Uploader::DSL

#access_key_id, #bucket_name, #delete_after, #secret_access_key

Methods included from Builder::DSL

#configuration, #project, #scheme, #signing_identity, #workspace

Class Method Details

.load(file) ⇒ Object



11
12
13
14
15
16
# File 'lib/hawk/dsl.rb', line 11

def self.load(file)
  instance = self.new
  instance.instance_eval(File.read(file), file)

  instance.execute
end

Instance Method Details

#executeObject



18
19
20
21
22
23
24
# File 'lib/hawk/dsl.rb', line 18

def execute
  extend Hawk::Builder
  extend Hawk::S3Uploader
  extend Hawk::Notifier

  notify_users # notify_users will trigger all dependent actions
end