Class: KitchenHooks::App
- Inherits:
-
Sinatra::Application
- Object
- Sinatra::Application
- KitchenHooks::App
show all
- Includes:
- Helpers
- Defined in:
- lib/kitchen_hooks/app.rb
Class Method Summary
collapse
Methods included from Helpers
#apply_constraints, #author, #berks_upload, #commit_to_kitchen?, #cookbook_name, #cookbook_repo?, #git_daemon_style_url, #gitlab_tag_url, #gitlab_url, #latest_commit, #lockfile_constraints, #not_deleted?, #notification, #perform_constraint_application, #perform_cookbook_upload, #perform_kitchen_upload, #repo_name, #tagged_commit, #tagged_commit_to_cookbook?, #tagged_commit_to_realm?, #tmp_clone, #upload_environment, #with_each_knife
Class Method Details
.config!(config) ⇒ Object
25
26
27
28
29
30
31
32
33
34
35
|
# File 'lib/kitchen_hooks/app.rb', line 25
def self.config! config
@@hipchat = nil
if config['hipchat']
@@hipchat = HipChat::Client.new config['hipchat']['token']
@@hipchat_nick = config['hipchat']['nick'] || raise('No HipChat "nick" provided')
@@hipchat_room = config['hipchat']['room'] || raise('No HipChat "room" provided')
end
@@knives = config['knives'].map do |_, knife|
Pathname.new(knife).expand_path.realpath.to_s
end
end
|
.db!(path) ⇒ Object
21
22
23
|
# File 'lib/kitchen_hooks/app.rb', line 21
def self.db! path
@@db = Daybreak::DB.new path
end
|