Class: CommandEnvironment
- Inherits:
-
Object
- Object
- CommandEnvironment
- Defined in:
- lib/ebim/setup_environment.rb,
lib/ebim/command_environment.rb
Constant Summary collapse
- EB_FOLDERS =
['.ebextensions', '.elasticbeanstalk']
Instance Method Summary collapse
-
#initialize(env:, ebextensions:) ⇒ CommandEnvironment
constructor
A new instance of CommandEnvironment.
- #setup ⇒ Object
- #teardown ⇒ Object
Constructor Details
#initialize(env:, ebextensions:) ⇒ CommandEnvironment
Returns a new instance of CommandEnvironment.
2 3 4 |
# File 'lib/ebim/setup_environment.rb', line 2 def initialize(env:) env = @env end |
Instance Method Details
#setup ⇒ Object
6 7 8 |
# File 'lib/ebim/setup_environment.rb', line 6 def setup File.rename('.elasticbeanstalk/config.yml.staging', '.elasticbeanstalk/config.yml') end |
#teardown ⇒ Object
10 11 12 |
# File 'lib/ebim/setup_environment.rb', line 10 def teardown File.rename('.elasticbeanstalk/config.yml', '.elasticbeanstalk/config.yml.staging') end |