class Acclimate::Command
Attributes
options[R]
Public Class Methods
new( options )
click to toggle source
# File lib/acclimate/command.rb, line 8 def initialize( options ) @options = options end
Public Instance Methods
execute()
click to toggle source
# File lib/acclimate/command.rb, line 12 def execute raise NotImplementedError, "You must implement #{self.class.name}#execute" end
Protected Instance Methods
base_path()
click to toggle source
# File lib/acclimate/command.rb, line 20 def base_path Pathname.new( Dir.pwd ) end
config()
click to toggle source
# File lib/acclimate/command.rb, line 24 def config @config = config_klass.load( options ) end
config_filepath()
click to toggle source
# File lib/acclimate/command.rb, line 28 def config_filepath config_klass.config_filepath end
config_klass()
click to toggle source
# File lib/acclimate/command.rb, line 32 def config_klass Acclimate::Configuration end