Sha256: acc13b4b15f7d091e3ca0a0abc9ea85c5d57205b248a08565edc5981934fbd89

Contents?: true

Size: 615 Bytes

Versions: 1

Compression:

Stored size: 615 Bytes

Contents

module DeployGate
  module Commands
    module Deploy
      class << self

        # @param [Array] args
        # @param [Commander::Command::Options] options
        def run(args, options)
          Init.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

1 entries across 1 versions & 1 rubygems

Version Path
deploygate-0.0.4 lib/deploygate/commands/deploy.rb