Ejemplo n.º 1
0
	def get(prefix = None, suffix = None):
		return ManagedTempFile(TempFile.get(prefix, suffix))
Ejemplo n.º 2
0
##############################
# Initialization
##############################

my_config = config.Config()

##############################
# Read issue from Jira
##############################

url = sys.argv[1]
my_jira = JiraManager(my_config)
issue = my_jira.get_issue_by_url(url)

##############################
# Download temp file
##############################

my_temp_file = TempFile(my_config, my_jira)
my_temp_file.write_file(issue, url)

##############################
# Create new Apple Note
##############################

path = os.path.dirname(os.path.abspath(__file__)).replace(" ", "\ ")
path = os.path.join(path, "tmp2note.app")
cmd = "open " + path
call(["/bin/bash", "-c", cmd])
Ejemplo n.º 3
0
	def __init__(self, file_name):
		if file_name:
			self.file_name = file_name
		else:
			self.file_name = TempFile.get()