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_url, #latest_commit, #lockfile_constraints, #not_deleted?, #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
24
25
26
27
28
|
# File 'lib/kitchen_hooks/app.rb', line 24
def self.config! config
@@knives = config['servers'].map do |s|
Pathname.new(s['knife']).expand_path.realpath.to_s
end
end
|
.db!(path) ⇒ Object
20
21
22
|
# File 'lib/kitchen_hooks/app.rb', line 20
def self.db! path
@@db = Daybreak::DB.new path
end
|