lib/org-converge/command.rb in org-converge-0.0.14 vs lib/org-converge/command.rb in org-converge-0.0.15

- old
+ new

@@ -1,7 +1,8 @@ module OrgConverge class Command + include Helpers attr_reader :dotorg attr_reader :logger attr_reader :ob attr_reader :engine attr_reader :runmode @@ -319,11 +320,11 @@ output end def with_running_engine(opts={}) - default_options = { :logger => @logger, :babel => @babel } + default_options = { :logger => @logger, :babel => babel } options = default_options.merge!(opts) engine = OrgConverge::Engine.new(options) yield engine engine.start end @@ -373,17 +374,9 @@ proc_name = "#{display_name}:#{i}" engine.register proc_name, cmd, { :cwd => @root_dir, :logger => logger, :header => script[:header] } end else engine.register display_name, cmd, { :cwd => @root_dir, :logger => logger, :header => script[:header] } - end - end - - def determine_lang_bin(script) - if script[:header][:shebang] - script[:header][:shebang].gsub('#!', '') - else - script[:lang] end end end end