class Gantree::CLI::Help
Public Class Methods
build()
click to toggle source
# File lib/gantree/cli/help.rb, line 76 def build <<-EOL Builds and tags a docker application. Examples: # Automatically tag a build $ gantree build # Add custom tag to a build $ gantree build -t deploy # Override image path to point to another hub $ gantree build -i quay.io/bleacherreport/cms EOL end
create()
click to toggle source
# File lib/gantree/cli/help.rb, line 40 def create <<-EOL Examples: $ gantree create APPLICATION $ gantree create linguist-stag-s1 $ gantree create APPLICATION -e ENVIRONMENT $ gantree create linguist-stag-s1 -e linguist-stag-app-s1 $ gantree create --dupe=rails-stag-s1 rails-stag-s3 EOL end
deploy()
click to toggle source
# File lib/gantree/cli/help.rb, line 15 def deploy <<-EOL Examples: $ gantree deploy -t TAG ENVIRONMENT $ gantree deploy -t latest stag-cauldon-app-s1 # to deploy to all environments to within the same application $ gantree deploy -t TAG APPLICATION $ gantree deploy -t TAG cauldron-stag-s1 # add remote .ebextensions $ gantree deploy -t TAG stag-cauldron-s1 -x "git@github.com:br/.ebextensions.git" # add remote .ebextensions branch $ gantree deploy -t TAG stag-cauldron-s1 -x "git@github.com:br/.ebextensions:feature_branch" EOL end
init()
click to toggle source
# File lib/gantree/cli/help.rb, line 5 def init <<-EOL Examples: $ gantree init -u USERNAME -p PORT HANDLE/REPO:TAG $ gantree init -u frodriguez -p 3000 bleacher/cauldron:master EOL end
push()
click to toggle source
# File lib/gantree/cli/help.rb, line 97 def push <<-EOL Push docker image tag to hub Examples: # Push automatically tagged build $ gantree push # Push custom tagged build $ gantree push -t deploy # Push to another hub/acocunt/repo $ gantree push -i quay.io/bleacherreport/cms EOL end
restart()
click to toggle source
# File lib/gantree/cli/help.rb, line 135 def restart <<-EOL Restart docker environment Examples: $ gantree restart stag-rails-app-s1 EOL end
ship()
click to toggle source
# File lib/gantree/cli/help.rb, line 117 def ship <<-EOL build, push and deploy docker image to elastic beanstalk Examples: # Automatically tag a build, push that build and deploy to elastic beanstalk $ gantree ship cms-stag-s1 # Override defaults $ gantree ship -i bleacher/cms -x "git@github.com:br/.ebextensions.git:master" cms-stag-s1 $ gantree ship -i bleacher/cms -t built -x "git@github.com:br/.ebextensions.git:master" cms-stag-s1 EOL end
update()
click to toggle source
# File lib/gantree/cli/help.rb, line 56 def update <<-EOL Examples: # Update a cloudformation stack $ gantree update linguist-stag-s1 # Add an app role to an existing stack $ gantree update linguist-stag-s1 -r worker # Update docker solution starck version $ gantree update linguist-stag-s1 -s latest $ gantree update linguist-stag-s1 -s "64bit Amazon Linux 2014.09 v1.0.11 running Docker 1.3.3" EOL end