Sha256: 2992d84cc6d74446bfd7fa5d1cee5a18dfc4853121914dbd793ae5c6531c524b

Contents?: true

Size: 532 Bytes

Versions: 1

Compression:

Stored size: 532 Bytes

Contents

require "net/ssh"
require "thor"

module Dogids
  class Cli < Thor
    no_commands do
      def deploy_web
        print_heading("Deploying dogids.com...")

        Net::SSH.start("web1.dogids.codelation.net", "dogids") do |ssh|
          commands = []
          commands << "cd apps/dogids.com"
          commands << "git pull origin master"
          ssh.exec!(commands.join("&& ")) do |_channel, _stream, data|
            print_command(data)
          end
        end

        print_heading("Done.")
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
dogids-cli-0.0.3 lib/dogids/deploy/web.rb