Sha256: 460238dd36969712067f54e5aa3696e25d21a81871ed944e7bdcfd92c52e2459

Contents?: true

Size: 1.33 KB

Versions: 1

Compression:

Stored size: 1.33 KB

Contents

#!/usr/bin/env ruby

require 'string'
require 'ghost/manager'
require 'highline/import'


puts ""
say "<%= color('Welcome to Ghost Manager, created by Create the Bridge', :green, :bold) %>"
puts ""

choose do |menu|
  menu.prompt = "What do you want to do? "
  menu.choice('Install Ghost') {
    dir = ask "Where would you like to install Ghost? (default #{Dir.home}/Applications/Ghost)"
    dir = "#{Dir.home}/Applications/Ghost" if dir.blank?
    installer = Ghost::Manager::Installer.new dir
    installer.install
  }

  menu.choice('Update Ghost Install') {
    ghost_install = ask "Please enter the path to your ghost installation: (default #{Dir.home}/Applications/Ghost) "
    ghost_install = "#{Dir.home}/Applications/Ghost" if ghost_install.blank?
    installer = Ghost::Manager::Installer.new ghost_install
    installer.update_install
  }

  menu.choice('Generate Theme') {
    puts ""
    say "<%= color('Sorry theme generation is not yet supported. We will add support for this option when our Yeoman generator has been released.', :red, :bold) %>"
    # ghost_install = ask "Please enter the path to your ghost installation: (default #{Dir.home}/Applications/Ghost) "
    # ghost_install = "#{Dir.home}/Applications/Ghost" if ghost_install.blank?
    # installer = Ghost::Manager::Installer.new ghost_install
    # installer.generate_theme
  }
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ghost-manager-0.0.1 bin/ghost