Sha256: 0dafd517e7118c78d8f403cff87b2e15eb21b0bd5a1cb7529b49bceb3c14b2d9

Contents?: true

Size: 616 Bytes

Versions: 36

Compression:

Stored size: 616 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_or_create_account() 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

36 entries across 36 versions & 1 rubygems

Version Path
deploygate-0.8.3 lib/deploygate/commands/deploy.rb
deploygate-0.8.2 lib/deploygate/commands/deploy.rb
deploygate-0.8.1 lib/deploygate/commands/deploy.rb
deploygate-0.8.0 lib/deploygate/commands/deploy.rb
deploygate-0.7.0 lib/deploygate/commands/deploy.rb
deploygate-0.6.8 lib/deploygate/commands/deploy.rb
deploygate-0.6.7 lib/deploygate/commands/deploy.rb
deploygate-0.6.6 lib/deploygate/commands/deploy.rb
deploygate-0.6.5 lib/deploygate/commands/deploy.rb
deploygate-0.6.4 lib/deploygate/commands/deploy.rb
deploygate-0.6.3 lib/deploygate/commands/deploy.rb
deploygate-0.6.2 lib/deploygate/commands/deploy.rb
deploygate-0.6.1 lib/deploygate/commands/deploy.rb
deploygate-0.6.0 lib/deploygate/commands/deploy.rb
deploygate-0.5.6 lib/deploygate/commands/deploy.rb
deploygate-0.5.5 lib/deploygate/commands/deploy.rb
deploygate-0.5.4 lib/deploygate/commands/deploy.rb
deploygate-0.5.3 lib/deploygate/commands/deploy.rb
deploygate-0.5.2 lib/deploygate/commands/deploy.rb
deploygate-0.5.1 lib/deploygate/commands/deploy.rb