Skip to content
This repository has been archived by the owner on Mar 18, 2020. It is now read-only.

Commit

Permalink
Further name changing to MuCloud
Browse files Browse the repository at this point in the history
  • Loading branch information
cjermain committed Apr 24, 2015
1 parent 0d04ea4 commit b5f75e6
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion config.ini
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
;
; ====================================
;
; This file is part of the MuMax-EC2 package.
; This file is part of the MuCloud package.
;
; Copyright (c) 2014-2015 Colin Jermain, Graham Rowlands
;
Expand Down
16 changes: 8 additions & 8 deletions mucloud.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env python
"""
This file is part of the MuMax-EC2 package.
This file is part of the MuCloud package.
Copyright (c) 2014-2015 Colin Jermain, Graham Rowlands
Expand Down Expand Up @@ -415,7 +415,7 @@ def launch():
return instance

def __repr__(self):
return "<MuMax-EC2 Instance(id='%s')>" % self.id
return "<MuCloud Instance(id='%s')>" % self.id


class InstanceGroup(object):
Expand Down Expand Up @@ -483,14 +483,14 @@ def reattach_instance(args):
else:
log.info("Instance %s is not running" % args.id[0])
else:
log.info("Instance %s is not a valid MuMax-EC2 instance" % args.id[0])
log.info("Instance %s is not a valid MuCloud instance" % args.id[0])


def list_instances(args):
group = InstanceGroup()
instances = group.instances
if len(instances) > 0:
log.info("MuMax-EC2 Instances:")
log.info("MuCloud Instances:")
log.info(" ID\t\tIP\t\tState\t\tPort\t\tFile")
for instance in instances:
if instance.ip is None:
Expand All @@ -514,7 +514,7 @@ def list_instances(args):
))

else:
log.info("No MuMax-EC2 instances currently running")
log.info("No MuCloud instances currently running")


def launch_instance(args):
Expand Down Expand Up @@ -543,7 +543,7 @@ def terminate_instance(args):
log.info("Terminating instance %s" % instance.id)
instance.terminate()
else:
log.info("Instance %s is not a valid MuMax-EC2 instance" % args.id[0])
log.info("Instance %s is not a valid MuCloud instance" % args.id[0])


def stop_instance(args):
Expand All @@ -566,7 +566,7 @@ def stop_instance(args):
log.info("Stopping instance %s" % instance.id)
instance.stop()
else:
log.info("Instance %s is not a valid MuMax-EC2 instance" % args.id[0])
log.info("Instance %s is not a valid MuCloud instance" % args.id[0])


def start_instance(args):
Expand All @@ -583,7 +583,7 @@ def start_instance(args):
log.info("Instance %s is not in a state that can be "
"started from" % args.id[0])
else:
log.info("Instance %s is not a valid MuMax-EC2 instance" % args.id[0])
log.info("Instance %s is not a valid MuCloud instance" % args.id[0])


if __name__ == '__main__':
Expand Down
2 changes: 1 addition & 1 deletion sshtunnel.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""
This file is part of the MuMax-EC2 package, but is based on the
This file is part of the MuCloud package, but is based on the
sshtunnel Python package: https://pypi.python.org/pypi/sshtunnel/
Copyright (c) 2014-2015 Colin Jermain, Graham Rowlands
Expand Down

0 comments on commit b5f75e6

Please sign in to comment.