Skip to content

Commit

Permalink
Merge pull request #231 from OSLL/7160_add_mdbci_clone_option
Browse files Browse the repository at this point in the history
7160 add mdbci clone option
  • Loading branch information
zmm committed Jul 5, 2016
2 parents 921cb8a + fc599b2 commit 55f77db
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions core/session.rb
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,15 @@ def show(collection)
return exit_code
end


def clone(configuration, new_path)
exit_code = 1
$out.info "Performing cloning operation for config #{configuration}. Cloned configuration name: #{new_path}"
cloneNode(configuration, new_path)
return exit_code
end


# all mdbci commands swith
def commands
exit_code = 1
Expand Down Expand Up @@ -451,6 +460,8 @@ def commands
when 'snapshot'
snapshot = Snapshot.new
exit_code = snapshot.do(ARGV.shift)
when 'clone'
exit_code = $session.clone(ARGV[0], ARGV[1])
else
$out.error 'Unknown mdbci command. Please look help!'
Help.display
Expand Down Expand Up @@ -953,4 +964,7 @@ def loadNodePlatform(name)

end

def cloneNode(configuration, new_path)
end

end

0 comments on commit 55f77db

Please sign in to comment.