lib/git_presenter/slide.rb in git_presenter-0.3.0 vs lib/git_presenter/slide.rb in git_presenter-0.4.0

- old
+ new

@@ -3,15 +3,17 @@ def initialize(slide) @commit = slide["commit"] @message = slide["message"] @run = slide["run"] + @launch = slide["launch"] end def execute output = "" output << checkout unless @commit.nil? output << `#{run}` unless @run.nil? + Launchy.open(@launch) unless @launch.nil? output end def to_s return "#{@commit[0..9]}, #{@message}" unless @commit.nil?