Class: Motion::Project::XcodeConfig::EnvWrapper

Inherits:
Hash
  • Object
show all
Defined in:
lib/motion-env/ios.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ EnvWrapper

Returns a new instance of EnvWrapper.



8
9
10
11
# File 'lib/motion-env/ios.rb', line 8

def initialize(*args)
  super
  @timestamp = Time.now.to_i
end

Instance Attribute Details

#timestampObject

Returns the value of attribute timestamp.



6
7
8
# File 'lib/motion-env/ios.rb', line 6

def timestamp
  @timestamp
end

Instance Method Details

#file_pathObject



13
14
15
# File 'lib/motion-env/ios.rb', line 13

def file_path
  @file_path ||= "/tmp/motion_env_#{@timestamp}.rb"
end