Sha256: 146658bdf6432e0ee6efe6b0e50e5e0d1fc1459b2870af7bec071097d5de7f75

Contents?: true

Size: 1.31 KB

Versions: 168

Compression:

Stored size: 1.31 KB

Contents

#!/usr/bin/env ruby

require 'smartcloud'

if ARGV[0] == 'init'
	Smartcloud::Boot.init
elsif !Smartcloud::Boot.initialized?
	puts "Smartcloud has not been initialized. Please run command 'smartcloud init'."
	exit
end

if ARGV[0] == 'docker'
	if ARGV[1] == 'install'
		Smartcloud::Docker.install
	elsif ARGV[1] == 'uninstall'
		Smartcloud::Docker.uninstall
	end
elsif ARGV[0] == 'grids'
	if ARGV[1] == 'runner'
		if ARGV[2] == 'up'
			Smartcloud::Grids::Runner.up
		elsif ARGV[2] == 'down'
			Smartcloud::Grids::Runner.down
		end
	elsif ARGV[1] == 'mysql'
		if ARGV[2] == 'up'
			Smartcloud::Grids::Mysql.up(ARGV[3])
		elsif ARGV[2] == 'down'
			Smartcloud::Grids::Mysql.down
		end
	elsif ARGV[1] == 'nginx'
		if ARGV[2] == 'up'
			Smartcloud::Grids::Nginx.up(ARGV[3])
		elsif ARGV[2] == 'down'
			Smartcloud::Grids::Nginx.down
		end
	elsif ARGV[1] == 'solr'
		if ARGV[2] == 'up'
			Smartcloud::Grids::Solr.up(ARGV[3])
		elsif ARGV[2] == 'down'
			Smartcloud::Grids::Solr.down
		elsif ARGV[2] == 'create_core'
			Smartcloud::Grids::Solr.create_core(ARGV[3])
		elsif ARGV[2] == 'destroy_core'
			Smartcloud::Grids::Solr.destroy_core(ARGV[3])
		end
	end
# elsif ARGV[0] == 'user'
# 	if ARGV[1] == 'create'
# 		Smartcloud::User.create(ARGV[2], ARGV[3], ARGV[4])
# 	elsif ARGV[1] == 'destroy'
# 		Smartcloud::User.destroy(ARGV[2], ARGV[3])
# 	end
end

Version data entries

168 entries across 168 versions & 1 rubygems

Version Path
smartcloud-0.0.198 bin/smartcloud
smartcloud-0.0.197 bin/smartcloud
smartcloud-0.0.196 bin/smartcloud
smartcloud-0.0.195 bin/smartcloud
smartcloud-0.0.194 bin/smartcloud
smartcloud-0.0.193 bin/smartcloud
smartcloud-0.0.192 bin/smartcloud
smartcloud-0.0.191 bin/smartcloud
smartcloud-0.0.190 bin/smartcloud
smartcloud-0.0.189 bin/smartcloud
smartcloud-0.0.188 bin/smartcloud
smartcloud-0.0.187 bin/smartcloud
smartcloud-0.0.186 bin/smartcloud
smartcloud-0.0.185 bin/smartcloud
smartcloud-0.0.184 bin/smartcloud
smartcloud-0.0.183 bin/smartcloud
smartcloud-0.0.182 bin/smartcloud
smartcloud-0.0.181 bin/smartcloud
smartcloud-0.0.180 bin/smartcloud
smartcloud-0.0.179 bin/smartcloud