Sha256: f261f6144e9dd4dca318d62311b64322b6d2125bbe3320527f27ae18866056cb
Contents?: true
Size: 381 Bytes
Versions: 5
Compression:
Stored size: 381 Bytes
Contents
module Stairs class Script def initialize(filename, groups) @filename = filename @script = File.read(@filename) @groups = groups end def run! puts "= Running script #{filename}".light_black run end private def run Step.new(groups).instance_eval(script) end attr_reader :script, :filename, :groups end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
stairs-0.10.0 | lib/stairs/script.rb |
stairs-0.9.0 | lib/stairs/script.rb |
stairs-0.8.0 | lib/stairs/script.rb |
stairs-0.7.1 | lib/stairs/script.rb |
stairs-0.7.0 | lib/stairs/script.rb |