class Figaro::CLI::Task
Attributes
options[R]
Public Class Methods
new(options = {})
click to toggle source
# File lib/figaro/cli/task.rb, line 12 def initialize(options = {}) @options = options end
run(options = {})
click to toggle source
# File lib/figaro/cli/task.rb, line 8 def self.run(options = {}) new(options).run end
Private Instance Methods
application()
click to toggle source
# File lib/figaro/cli/task.rb, line 26 def application @application ||= Figaro::Application.new(options) end
configuration()
click to toggle source
# File lib/figaro/cli/task.rb, line 22 def configuration application.configuration end
env()
click to toggle source
# File lib/figaro/cli/task.rb, line 18 def env ENV.to_hash.update(configuration) end
system(*)
click to toggle source
Calls superclass method
# File lib/figaro/cli/task.rb, line 31 def system(*) Bundler.with_clean_env { super } end