Sha256: 2aea9489c3244df61cc58e700154cab6d0b9635f8a0faf187c0145f7d615fefb

Contents?: true

Size: 350 Bytes

Versions: 11

Compression:

Stored size: 350 Bytes

Contents

class Freighthop::CLI::Checks
  def self.ensure_config_exists!
    unless Freighthop::Config.exist?
      puts <<-NO_CONFIG
ERROR: No freighthop config file (.freighthop.json) found in current path.
       You can generate a template config with `fh init`, or see `fh help`
       for more information.
      NO_CONFIG
      exit 1
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
freighthop-0.6.1 lib/freighthop/cli/checks.rb
freighthop-0.6.0 lib/freighthop/cli/checks.rb
freighthop-0.5.2 lib/freighthop/cli/checks.rb
freighthop-0.5.1 lib/freighthop/cli/checks.rb
freighthop-0.5.0 lib/freighthop/cli/checks.rb
freighthop-0.4.1 lib/freighthop/cli/checks.rb
freighthop-0.4.0 lib/freighthop/cli/checks.rb
freighthop-0.3.3 lib/freighthop/cli/checks.rb
freighthop-0.3.2 lib/freighthop/cli/checks.rb
freighthop-0.3.1 lib/freighthop/cli/checks.rb
freighthop-0.3.0 lib/freighthop/cli/checks.rb