Sha256: abdce294b5c5a9cdf5d6596d5ae7622037fd31a110f9f2218c399f8a963d07a2
Contents?: true
Size: 909 Bytes
Versions: 39
Compression:
Stored size: 909 Bytes
Contents
module PowerStencil module CommandProcessors class Shell include Climatic::Script::UnimplementedProcessor include Climatic::Proxy include PowerStencil::Project::Proxy def execute working_universe = if config[:compiled] project.engine.root_universe.compile scenario: config[:scenario] else project.engine.root_universe end context = project.engine.running_context working_universe require 'pry' Pry.hooks.add_hook(:before_session, "startup_message") do puts config[:shell_dsl][:session_greetings] end Pry.start context, prompt: [proc { config[:shell_dsl][:prompt_level_1] }, proc { config[:shell_dsl][:prompt_level_2] }], quiet: true end end end end
Version data entries
39 entries across 39 versions & 1 rubygems