Module: Capistrano::Ops
- Defined in:
- lib/capistrano/ops.rb,
lib/capistrano/ops/helper.rb,
lib/capistrano/ops/version.rb,
lib/capistrano/ops/logs/paths.rb,
lib/capistrano/ops/logs/helpers.rb,
lib/capistrano/ops/backup/helper.rb,
lib/capistrano/ops/logrotate/paths.rb,
lib/capistrano/ops/figaro_yml/paths.rb,
lib/capistrano/ops/logrotate/helpers.rb,
lib/capistrano/ops/rails/lib/railtie.rb,
lib/capistrano/ops/figaro_yml/helpers.rb,
lib/capistrano/ops/wkhtmltopdf/helpers.rb
Defined Under Namespace
Modules: Backup, FigaroYml, Helper, Libs, Logrotate, Logs, Wkhtmltopdf
Constant Summary
collapse
- VERSION =
'1.0.9'
Class Method Summary
collapse
Class Method Details
.bin_rails? ⇒ Boolean
14
15
16
|
# File 'lib/capistrano/ops.rb', line 14
def self.bin_rails?
File.exist?(File.join(path, 'bin', 'rails'))
end
|
.bundler? ⇒ Boolean
22
23
24
|
# File 'lib/capistrano/ops.rb', line 22
def self.bundler?
File.exist?(File.join(path, 'Gemfile'))
end
|
.path ⇒ Object
10
11
12
|
# File 'lib/capistrano/ops.rb', line 10
def self.path
Dir.pwd
end
|
.script_rails? ⇒ Boolean
18
19
20
|
# File 'lib/capistrano/ops.rb', line 18
def self.script_rails?
File.exist?(File.join(path, 'script', 'rails'))
end
|