Class: PuppetGenerator::Ui::Create

Inherits:
Thor
  • Object
show all
Defined in:
lib/puppet_generator/ui/create.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.exit_on_failure?Boolean

Returns:

  • (Boolean)


4
5
6
# File 'lib/puppet_generator/ui/create.rb', line 4

def self.exit_on_failure?
  true
end

Instance Method Details

#fileObject



26
27
28
# File 'lib/puppet_generator/ui/create.rb', line 26

def file
  PuppetGenerator::Api.new.generate_file_definition(options)
end

#moduleObject



42
43
44
# File 'lib/puppet_generator/ui/create.rb', line 42

def module
  PuppetGenerator::Api.new.generate_module(options)
end

#packageObject



15
16
17
# File 'lib/puppet_generator/ui/create.rb', line 15

def package
  PuppetGenerator::Api.new.generate_package_definition(options)
end

#roleObject



53
54
55
# File 'lib/puppet_generator/ui/create.rb', line 53

def role
  PuppetGenerator::Api.new.generate_role_definition(options)
end

#userObject



37
38
39
# File 'lib/puppet_generator/ui/create.rb', line 37

def user
  PuppetGenerator::Api.new.generate_user_definition(options)
end