Sha256: 2bb2590647810a1db9541ebd7f4b77b31397d8f346e264602d738a326e2f9a41

Contents?: true

Size: 531 Bytes

Versions: 4

Compression:

Stored size: 531 Bytes

Contents

require 'thor'
require 'thor/group'

module Artoo
  module Commands
    class Install < Thor
      include Thor::Actions
      include Artoo::Utility
      
      desc "socat", "install socat utility program"
      def socat
        case os 
        when :linux
          run("sudo apt-get update && sudo apt-get install socat")
        when :macosx
          Bundler.with_clean_env do
            run("brew install socat")
          end
        else
          say "OS not yet supported..."
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
artoo-1.0.0 lib/artoo/commands/install.rb
artoo-1.0.0.rc4 lib/artoo/commands/install.rb
artoo-1.0.0.rc3 lib/artoo/commands/install.rb
artoo-1.0.0.rc2 lib/artoo/commands/install.rb