Class: DeployMongo::Delta

Inherits:
Object
  • Object
show all
Defined in:
lib/deploy_mongo/delta.rb

Instance Method Summary collapse

Constructor Details

#initialize(id, file_name, command, rollback_command) ⇒ Delta

Returns a new instance of Delta.



4
5
6
7
8
9
# File 'lib/deploy_mongo/delta.rb', line 4

def initialize(id,file_name,command,rollback_command)
  @id=id
  @file_name = file_name
  @command = command
  @rollback_command = rollback_command
end

Instance Method Details

#commandObject



20
21
22
# File 'lib/deploy_mongo/delta.rb', line 20

def command
  @command
end

#file_nameObject



16
17
18
# File 'lib/deploy_mongo/delta.rb', line 16

def file_name
  @file_name
end

#idObject



11
12
13
# File 'lib/deploy_mongo/delta.rb', line 11

def id
  @id
end

#rollback_commandObject



24
25
26
# File 'lib/deploy_mongo/delta.rb', line 24

def rollback_command
  @rollback_command
end