Class: Whally::Builder
- Inherits:
-
Thor
- Object
- Thor
- Whally::Builder
- Includes:
- Thor::Actions, Whally
- Defined in:
- lib/whally/builder.rb
Overview
Whally Commandline App
Constant Summary
Constants included from Whally
Instance Method Summary collapse
- #dockerize(pathfile) ⇒ Object
-
#initialize(args = [], local_options = {}, config = {}) ⇒ Builder
constructor
A new instance of Builder.
Constructor Details
#initialize(args = [], local_options = {}, config = {}) ⇒ Builder
Returns a new instance of Builder.
15 16 17 18 19 |
# File 'lib/whally/builder.rb', line 15 def initialize(args = [], = {}, config = {}) super @gems = [] @pathfile = '' end |
Instance Method Details
#dockerize(pathfile) ⇒ Object
22 23 24 25 26 27 28 29 30 31 |
# File 'lib/whally/builder.rb', line 22 def dockerize(pathfile) @pathfile = pathfile.gsub('Gemfile', '') scan_gems response = return_packages Whally::Dockerfiler.new(response, @pathfile).dockerfiles if @gems.include?('rails') add_development_files end build_container end |