lib/eucalypt/core/cli/init.rb in eucalypt-0.8.0 vs lib/eucalypt/core/cli/init.rb in eucalypt-0.9.0
- old
+ new
@@ -8,12 +8,10 @@
option :git, type: :boolean, default: true, desc: 'Initialize a Git repository'
option :bundle, type: :boolean, default: true, desc: 'Install gems after application generation'
option :blog, type: :boolean, default: false, aliases: '-b', desc: 'Set up the blog environment'
option :route, type: :string, default: 'blog', aliases: '-r', desc: 'Specify a route for the blog application'
option :silence, type: :boolean, default: false, aliases: '-s', desc: 'Silence `git init` and `bundle install` commands'
- option :warden, type: :boolean, default: false, aliases: '-w', desc: 'Set up Warden authentication'
- option :pundit, type: :boolean, default: false, aliases: '-p', desc: 'Set up Pundit authorization'
desc "init [NAME]", "Sets up your application".colorize(:grey)
def init(name)
current_directory = File.expand_path ?.
name = Inflect.route(name)
root = File.join(current_directory, name)
@@ -52,14 +50,9 @@
inside(root) do
args = %w[blog setup]
args << '-r' << options[:route] if options[:route]
Eucalypt::CLI.start(args)
end
- end
-
- inside(root) do
- Eucalypt::CLI.start %w[security warden setup] if options[:warden]
- Eucalypt::CLI.start %w[security pundit setup] if options[:warden] && options[:pundit]
end
puts if options[:git] || options[:bundle]
inside(root) { run(options[:silence] ? 'git init --quiet' : 'git init') } if options[:git]
puts if options[:git] && options[:bundle]
\ No newline at end of file