Sha256: cb8434be03208938643ac65d3e6c9a4e4964413a8c7636f068b8cab8f38526ff

Contents?: true

Size: 707 Bytes

Versions: 7

Compression:

Stored size: 707 Bytes

Contents

#!/usr/bin/env ruby
require 'fanforce/cli'

fanforce = Fanforce::CLI.new('fanforce')

if File.exists?("#{$HomeDir}/config.ru") and File.exists?("#{$HomeDir}/../.fanforce-cli")
  ARGV.unshift(":#{File.basename($HomeDir)}")
  $HomeDir = File.expand_path('..', $HomeDir)
  fanforce.start(
      :runtype => :single,
      :allowed => [:update, :push, :restart, :bundle, :git, :iron, :version, :config, :cleanorgs, :upgrade],
  )
elsif File.exists?("#{$HomeDir}/.fanforce-cli")
  fanforce.start(
      :runtype => :multiple,
      :allowed => [:list, :create, :update, :delete, :push, :restart, :count, :bundle, :git, :iron, :version, :config, :cleanorgs, :upgrade],
  )
else
  puts 'NOT A VALID DIRECTORY'
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
fanforce-cli-1.7.0 bin/fanforce
fanforce-cli-1.6.0 bin/fanforce
fanforce-cli-1.5.0 bin/fanforce
fanforce-cli-1.4.0 bin/fanforce
fanforce-cli-1.3.0 bin/fanforce
fanforce-cli-1.2.0 bin/fanforce
fanforce-cli-1.1.0 bin/fanforce