class BooticCli::FileRunner
Public Class Methods
new(root, file_name)
click to toggle source
# File lib/bootic_cli/file_runner.rb, line 9 def initialize(root, file_name) @root = root @file_name = file_name end
run(root, file_name)
click to toggle source
# File lib/bootic_cli/file_runner.rb, line 5 def self.run(root, file_name) new(root, file_name).run end
Public Instance Methods
root()
click to toggle source
root
is already defined in Connectivity
but we want to pass a pre-initialized root to avoid having to re-fetch root from API
# File lib/bootic_cli/file_runner.rb, line 21 def root @root end
run()
click to toggle source
# File lib/bootic_cli/file_runner.rb, line 14 def run self.instance_eval File.read(@file_name), @file_name end