Class: EB
- Inherits:
-
Object
- Object
- EB
- Defined in:
- lib/ebim/eb.rb
Constant Summary collapse
- EB_FOLDERS =
['.ebextensions', '.elasticbeanstalk']
Instance Method Summary collapse
- #exist? ⇒ Boolean
- #get_config_files ⇒ Object
- #has_eb_config? ⇒ Boolean
- #has_ebextension_configs? ⇒ Boolean
-
#initialize(env:) ⇒ EB
constructor
A new instance of EB.
Constructor Details
#initialize(env:) ⇒ EB
Returns a new instance of EB.
5 6 7 |
# File 'lib/ebim/eb.rb', line 5 def initialize(env:) @env = env end |
Instance Method Details
#exist? ⇒ Boolean
9 10 11 |
# File 'lib/ebim/eb.rb', line 9 def exist? EB_FOLDERS.map { |folder| folder_exists? folder } end |
#get_config_files ⇒ Object
21 22 23 |
# File 'lib/ebim/eb.rb', line 21 def get_config_files all_config_files.select { |file| file.split('.').last == env } end |