Sha256: 236441f4835317d559fcf87c279875aca9513b68b16f6dd772d45008b9e87e7a

Contents?: true

Size: 311 Bytes

Versions: 38

Compression:

Stored size: 311 Bytes

Contents

#!/usr/bin/env ruby

begin
  require 'aptible/cli'
rescue
  require 'rubygems'
  require 'aptible/cli'
end

begin
  Aptible::CLI::Agent.start
rescue HyperResource::ClientError => e
  if e.body['error'] == 'invalid_token'
    STDERR.puts 'API authentication error: please run aptible login'
    exit 1
  end
end

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
aptible-cli-0.5.4 bin/aptible
aptible-cli-0.5.2 bin/aptible
aptible-cli-0.5.1 bin/aptible
aptible-cli-0.5.0 bin/aptible
aptible-cli-0.4.4 bin/aptible
aptible-cli-0.4.3 bin/aptible
aptible-cli-0.4.2 bin/aptible
aptible-cli-0.4.1 bin/aptible
aptible-cli-0.4.0 bin/aptible
aptible-cli-0.3.7 bin/aptible
aptible-cli-0.3.6 bin/aptible
aptible-cli-0.3.5 bin/aptible
aptible-cli-0.3.4 bin/aptible
aptible-cli-0.3.3 bin/aptible
aptible-cli-0.3.2 bin/aptible
aptible-cli-0.3.1 bin/aptible
aptible-cli-0.3.0 bin/aptible
aptible-cli-0.2.0 bin/aptible