class Bashly::RenderContext
Attributes
config[W]
show[R]
source[R]
target[R]
Public Class Methods
new(source:, target:, show: nil)
click to toggle source
# File lib/bashly/render_context.rb, line 11 def initialize(source:, target:, show: nil) @source = source @target = target @show = show end
Public Instance Methods
command()
click to toggle source
# File lib/bashly/render_context.rb, line 21 def command @command ||= Script::Command.new config end
config()
click to toggle source
# File lib/bashly/render_context.rb, line 17 def config @config ||= Config.new Settings.config_path end
save(filename, content)
click to toggle source
# File lib/bashly/render_context.rb, line 25 def save(filename, content) File.deep_write filename, content say "g`saved` #{filename}" end