Sha256: 925fa5ee3d6fd73163ba394c80c777d2582f1d0a860858d5a621b56cad263bde
Contents?: true
Size: 959 Bytes
Versions: 4
Compression:
Stored size: 959 Bytes
Contents
require "venice/version" require "thor" module Venice class Kit < Thor include Thor::Actions desc "new", "runs the command to clone venice into new project" def new(repo_name = "new-venice-project") url = "https://github.com/alexkravets/venice.git" system "git ls-remote #{url} > /dev/null 2>&1" puts "Starting a new venice project in #{repo_name}" system %{ git clone "#{url}" "#{repo_name}" && cd "#{repo_name}" && git remote rename origin venice && cd - } end desc "setup", "Sets up the project" def setup puts "Setting up your project" system "bin/setup" end desc "deploy", "Deploys the site to Heroku" def deploy(platform = "heroku") puts "Deploying the site to Heroku" system "bin/deploy-#{platform}" end desc "version", "Show Venice version" def version say "Venice #{Venice::VERSION}" end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
venice-chr-0.1.4 | lib/venice/kit.rb |
venice-chr-0.1.3 | lib/venice/kit.rb |
venice-chr-0.1.2 | lib/venice/kit.rb |
venice-chr-0.1.1 | lib/venice/kit.rb |