Module: Blue
- Includes:
- Config
- Defined in:
- lib/blue.rb,
lib/blue/box.rb,
lib/blue/gems.rb,
lib/blue/config.rb,
lib/blue/plugins.rb,
lib/blue/railtie.rb,
lib/blue/version.rb,
lib/blue/template.rb,
lib/capistrano/os.rb,
lib/capistrano/gems.rb,
lib/capistrano/ruby.rb,
lib/blue/plugins/apt.rb,
lib/capistrano/rails.rb,
lib/capistrano/setup.rb,
lib/blue/plugins/ntpd.rb,
lib/capistrano/deploy.rb,
lib/blue/database_config.rb,
lib/blue/abstract_manifest.rb,
lib/capistrano/integration.rb,
lib/capistrano/local_config.rb
Defined Under Namespace
Modules: Apt, Config, DatabaseConfig, Gems, LocalConfig, Ntpd, Plugins, Template
Classes: AbstractManifest, Box, CapistranoIntegration, Deploy, Os, Rails, Railtie, RubyInstall, Setup
Constant Summary
collapse
- BLUE_CONFIG =
'config/blue.yml'
- VERSION =
"0.2.7"
- @@boxes =
[]
Class Method Summary
collapse
Methods included from Config
included
Class Method Details
.boxes ⇒ Object
52
53
54
|
# File 'lib/blue.rb', line 52
def self.boxes
@@boxes
end
|
.current_release_dir ⇒ Object
31
32
33
|
# File 'lib/blue.rb', line 31
def self.current_release_dir
@@current_release_dir ||= `pwd`.strip
end
|
.env ⇒ Object
19
20
21
|
# File 'lib/blue.rb', line 19
def self.env
ENV['DEPLOY_ENV']
end
|
.load_boxes! ⇒ Object
56
57
58
59
60
|
# File 'lib/blue.rb', line 56
def self.load_boxes!
Dir.glob("#{rails_root}/config/blue/boxes/#{env}/*.rb").each do |rb|
require rb
end
end
|
.logs_path ⇒ Object
39
40
41
|
# File 'lib/blue.rb', line 39
def self.logs_path
@@logs_path ||= shared_path + "logs/"
end
|
.pids_path ⇒ Object
43
44
45
|
# File 'lib/blue.rb', line 43
def self.pids_path
@@pids_path ||= shared_path + "pids/"
end
|
.rails_current ⇒ Object
27
28
29
|
# File 'lib/blue.rb', line 27
def self.rails_current
@@rails_current ||= File.join(current_release_dir.split('/')[0..3] + ['current'])
end
|
.rails_root ⇒ Object
23
24
25
|
# File 'lib/blue.rb', line 23
def self.rails_root
@@rails_root ||= `pwd`.strip end
|
.register_box(klass) ⇒ Object
48
49
50
|
# File 'lib/blue.rb', line 48
def self.register_box(klass)
@@boxes << klass
end
|
.shared_path ⇒ Object
35
36
37
|
# File 'lib/blue.rb', line 35
def self.shared_path
@@shared_path ||= "/u/apps/#{Blue.config.application}/shared/"
end
|