Skip to content
This repository has been archived by the owner on Jul 28, 2018. It is now read-only.

Commit

Permalink
check-env in cli will now report if it is correctly configured.
Browse files Browse the repository at this point in the history
  • Loading branch information
balupton committed Jan 4, 2011
1 parent 3ae2678 commit da98385
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions cli
Expand Up @@ -69,18 +69,11 @@ class App
BRANCH_DEV = :'v1.0.0-dev'
BRANCH_BALCMS = :'v1.0.0-balcms'
BRANCH_MASTER = :'master'
MIN_PHP_VERSION = 5.3
MIN_PHP_VERSION = 5.2
MIN_GIT_VERSION = 1.6 # actually, only 1.5.3 is needed, but the comparison could get complicated
attr_accessor :php_binary

def initialize
check_env
end

# ===========================================================================
# Installers

def check_env
# Check for Requirements
reqs = ['rm','sed','curl','chmod','git','php','httpd','mysql']
reqs.each do |req|
Expand Down Expand Up @@ -116,6 +109,14 @@ class App
end
end

# ===========================================================================
# Installers

def check_env
# If we have made it here, then all is good as the configuration is checked on init
puts 'Your environment is correctly configured.'
end

def birth
init_new
configure
Expand Down

0 comments on commit da98385

Please sign in to comment.