class Oozou::CLI::Runner

Public Instance Methods

init() click to toggle source
# File lib/oozou/cli.rb, line 13
      def init
        dotoozou = File.join(Dir.pwd, '.oozou')
        fail "#{dotoozou} already exists" if File.exist?(dotoozou)
        File.open(dotoozou, 'w') do |file|
          file.write <<-PLAIN
#apiary = app_name
#circleci = app_name
#github = oozou/app_name
#heroku = app_name
          PLAIN
        end
        puts ".oozou created successfully"
      end
new(app_name) click to toggle source
# File lib/oozou/cli.rb, line 28
def new(app_name)
  fail "APP_NAME is missing" if app_name.nil?
  `mkdir #{app_name} &&
   cd #{app_name} &&
   git clone git@github.com:oozou/rails-template.git --single-branch ./ &&
   git remote rename origin template &&
   git remote add origin git@github.com:oozou/#{app_name}.git &&
   git checkout -b develop`
end