Sha256: 5983eb797447b5d5e299e7ac77ee54d3611f3b84ebfa50972aa1073c8b3eaad7
Contents?: true
Size: 1.04 KB
Versions: 4
Compression:
Stored size: 1.04 KB
Contents
module Coral module Vagrant module SubCommand class CoralCreate < ::Vagrant.plugin('2', :command) #----------------------------------------------------------------------- # Execution def execute options = {} success = true default_repo = 'git://github.com/coralnexus/cluster-core.git' #--- opts = OptionParser.new do |opts| opts.banner = 'Usage: coral create -h --repo={cluster_repository} [ {project_path} ]' opts.separator "" options[:repo] = default_repo opts.on('-r', '--repo REPOSITORY', "Git repository URL of Coral cluster to start project from (#{default_repo})") do |r| options[:repo] = r end end #--- args = parse_options(opts) return unless args project_path = ( project_path.empty? ? '.' : args[0] ) #--------- # Start exit success ? 0 : 1 end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems