module Capistrano::Napkin::Configuration

Constants

CONFIG_FILE_NAME
GLOBAL_CONFIG_FILE
PROJECT_CONFIG_FILE

Attributes

_config[R]

Public Instance Methods

ablerc() click to toggle source
# File lib/capistrano/napkin/configuration.rb, line 17
def ablerc
  Ablerc
end
load!(filename, options={}) click to toggle source
# File lib/capistrano/napkin/configuration.rb, line 21
def load!(filename, options={})
  @_ablerc ||= Ablerc.load! Napkin.root
end
method_missing(name, *args, &block) click to toggle source
# File lib/capistrano/napkin/configuration.rb, line 25
def method_missing(name, *args, &block)
  Ablerc.config.send(name.to_sym) || fail(NoMethodError, "unknown configuration root #{name}", caller)
end
project_settings?() click to toggle source
# File lib/capistrano/napkin/configuration.rb, line 33
def project_settings?
  File.exists? PROJECT_CONFIG_FILE
end
user_settings?() click to toggle source
# File lib/capistrano/napkin/configuration.rb, line 29
def user_settings?
  File.exists? GLOBAL_CONFIG_FILE
end