Class: Bridgetown::Commands::Configure
- Inherits:
-
Thor::Group
- Object
- Thor::Group
- Bridgetown::Commands::Configure
show all
- Extended by:
- Summarizable
- Includes:
- Actions, Thor::Actions
- Defined in:
- lib/bridgetown-core/commands/configure.rb
Constant Summary
Constants included
from Actions
Actions::GITHUB_BLOB_REGEX, Actions::GITHUB_REGEX, Actions::GITHUB_REPO_REGEX, Actions::GITHUB_TREE_REGEX
Class Method Summary
collapse
Instance Method Summary
collapse
summary
Methods included from Actions
#add_gem, #add_initializer, #add_npm_for_gem, #add_npm_package, #apply_from_url, #create_builder, #javascript_import, #ruby_configure
Class Method Details
.banner ⇒ Object
14
15
16
|
# File 'lib/bridgetown-core/commands/configure.rb', line 14
def self.banner
"bridgetown configure CONFIGURATION(S)"
end
|
.exit_on_failure? ⇒ Boolean
19
20
21
|
# File 'lib/bridgetown-core/commands/configure.rb', line 19
def self.exit_on_failure?
true
end
|
.source_root ⇒ Object
34
35
36
|
# File 'lib/bridgetown-core/commands/configure.rb', line 34
def self.source_root
File.expand_path("../configurations", __dir__)
end
|
Instance Method Details
23
24
25
26
27
28
29
30
31
32
|
# File 'lib/bridgetown-core/commands/configure.rb', line 23
def perform_configurations
@logger = Bridgetown.logger
list_configurations if args.empty?
args.each do |configuration|
configure configuration
rescue Thor::Error
@logger.error "Error:".red, "🚨 Configuration doesn't exist: #{configuration}"
end
end
|