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.6.9 bin/aptible
aptible-cli-0.6.8 bin/aptible
aptible-cli-0.6.7 bin/aptible
aptible-cli-0.6.6 bin/aptible
aptible-cli-0.6.4 bin/aptible
aptible-cli-0.6.3 bin/aptible
aptible-cli-0.6.2 bin/aptible
aptible-cli-0.6.1 bin/aptible
aptible-cli-0.6.0 bin/aptible
aptible-cli-0.5.15 bin/aptible
aptible-cli-0.5.14 bin/aptible
aptible-cli-0.5.13 bin/aptible
aptible-cli-0.5.12 bin/aptible
aptible-cli-0.5.11 bin/aptible
aptible-cli-0.5.10 bin/aptible
aptible-cli-0.5.9 bin/aptible
aptible-cli-0.5.8 bin/aptible
aptible-cli-0.5.7 bin/aptible
aptible-cli-0.5.6 bin/aptible
aptible-cli-0.5.5 bin/aptible