Sha256: 1bb0e44b1a91781d57831a4fb53863e9a552727f5abc3daacf9eb5ffd74ae95c

Contents?: true

Size: 308 Bytes

Versions: 5

Compression:

Stored size: 308 Bytes

Contents

module EY
  module Serverside
    class Shell
      class CommandResult < Struct.new(:command, :success, :output, :server)
        alias success? success

        def inspect
          <<-EOM
$ #{success? ? "(success)" : "(failed)"} #{command}
#{output}
          EOM
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
engineyard-serverside-2.2.0.rc2 lib/engineyard-serverside/shell/command_result.rb
engineyard-serverside-2.2.0.rc1 lib/engineyard-serverside/shell/command_result.rb
engineyard-serverside-2.2.0.pre3 lib/engineyard-serverside/shell/command_result.rb
engineyard-serverside-2.2.0.pre2 lib/engineyard-serverside/shell/command_result.rb
engineyard-serverside-2.2.0.pre lib/engineyard-serverside/shell/command_result.rb