Method: Elastip::Elastip#initialize

Defined in:
lib/elastip.rb

#initialize(project, env, all: false) ⇒ Elastip

Returns a new instance of Elastip.



8
9
10
11
12
13
# File 'lib/elastip.rb', line 8

def initialize(project, env, all: false)
  abort "You need to specify a project and an environnement (e.g staging,production)" if !project or !env
  @project_re = Regexp.new(project)
  @env = env
  @all = all
end