Sha256: 4ad227a58997ad0020c0fb098b0736b36e177453a82c373821a8ac1b38645fba

Contents?: true

Size: 598 Bytes

Versions: 5

Compression:

Stored size: 598 Bytes

Contents

module DeployGate
  module Commands
    module Deploy
      class << self

        # @param [Array] args
        # @param [Commander::Command::Options] options
        def run(args, options)
          Login.start_login() unless DeployGate::Session.new.login?

          # push or build(android/ios)
          args.push(Dir.pwd) if args.empty?

          work_file_path = args.first
          if File.directory?(work_file_path)
            Build.run(args, options)
          else
            # file upload
            Push.upload(args, options)
          end
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
deploygate-0.9.1 lib/deploygate/commands/deploy.rb
deploygate-0.9.0 lib/deploygate/commands/deploy.rb
deploygate-0.8.6 lib/deploygate/commands/deploy.rb
deploygate-0.8.5 lib/deploygate/commands/deploy.rb
deploygate-0.8.4 lib/deploygate/commands/deploy.rb