Sha256: 16c2b7d7d8727c866fd4faefe4becce700a093f180982947af2f63e12d4dcc4d

Contents?: true

Size: 575 Bytes

Versions: 8

Compression:

Stored size: 575 Bytes

Contents

module Inesita
  class CLI < Thor
    include Thor::Actions

    check_unknown_options!

    namespace :new

    desc 'new PROJECT_NAME', 'Create Inesita app'

    method_option :force,
                  aliases: :f,
                  default: false,
                  desc: 'force overwrite'

    def new(project_dir)
      directory('template', project_dir, project_name: project_dir, build_dir: Inesita::Config::BUILD_DIR)

      inside project_dir do
        run 'bundle install'
      end
    end

    def self.source_root
      File.dirname(__FILE__)
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
inesita-0.6.1 lib/inesita/cli/new.rb
inesita-0.6.0 lib/inesita/cli/new.rb
inesita-0.6.0.beta.1 lib/inesita/cli/new.rb
inesita-0.5.1 lib/inesita/cli/new.rb
inesita-0.5.0 lib/inesita/cli/new.rb
inesita-0.4.4 lib/inesita/cli/new.rb
inesita-0.4.1 lib/inesita/cli/new.rb
inesita-0.4.0 lib/inesita/cli/new.rb