class RidgepoleRake::Tasks
Public Class Methods
apply(dry_run = false)
click to toggle source
# File lib/ridgepole_rake/tasks.rb, line 4 def apply(dry_run = false) run(:apply, dry_run: dry_run) end
diff()
click to toggle source
# File lib/ridgepole_rake/tasks.rb, line 16 def diff run(:diff) end
export()
click to toggle source
# File lib/ridgepole_rake/tasks.rb, line 12 def export run(:export) end
merge(merge_file, dry_run = false)
click to toggle source
# File lib/ridgepole_rake/tasks.rb, line 8 def merge(merge_file, dry_run = false) run(:merge, merge_file: merge_file, dry_run: dry_run) end
Private Class Methods
result(command)
click to toggle source
# File lib/ridgepole_rake/tasks.rb, line 29 def result(command) puts '-----' puts "Executed command => #{command}" end
run(action, options = {})
click to toggle source
# File lib/ridgepole_rake/tasks.rb, line 22 def run(action, options = {}) cmd = Command.new(action, RidgepoleRake.config, options) cmd.execute result(cmd.inspect) end