{"action":"created","issue":{"url":"https://api.github.com/repos/iron-io/iron_worker_ruby_ng/issues/132","labels_url":"https://api.github.com/repos/iron-io/iron_worker_ruby_ng/issues/132/labels{/name}","comments_url":"https://api.github.com/repos/iron-io/iron_worker_ruby_ng/issues/132/comments","events_url":"https://api.github.com/repos/iron-io/iron_worker_ruby_ng/issues/132/events","html_url":"https://github.com/iron-io/iron_worker_ruby_ng/issues/132","id":9597551,"number":132,"title":"Set environment variables in worker","user":{"login":"ahallock","id":19376,"avatar_url":"https://avatars.githubusercontent.com/u/19376?v=3","gravatar_id":"","url":"https://api.github.com/users/ahallock","html_url":"https://github.com/ahallock","followers_url":"https://api.github.com/users/ahallock/followers","following_url":"https://api.github.com/users/ahallock/following{/other_user}","gists_url":"https://api.github.com/users/ahallock/gists{/gist_id}","starred_url":"https://api.github.com/users/ahallock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahallock/subscriptions","organizations_url":"https://api.github.com/users/ahallock/orgs","repos_url":"https://api.github.com/users/ahallock/repos","events_url":"https://api.github.com/users/ahallock/events{/privacy}","received_events_url":"https://api.github.com/users/ahallock/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":16,"created_at":"2012-12-31T20:52:37Z","updated_at":"2015-05-20T12:47:12Z","closed_at":null,"body":"It would useful to add env variables to IronWorker in `.worker` (or another file in the worker upload). \r\n\r\nAdditionally, you could set environment variables in the shell:\r\n\r\n```\r\niron_worker env set <key> <value>\r\n```\r\n\r\nThe available commands could be `list`, `get`, `set`, `delete`, and  `clear`.\r\n\r\nThe advantage with the CLI is that you could change env variables without having to re-upload the worker."},"comment":{"url":"https://api.github.com/repos/iron-io/iron_worker_ruby_ng/issues/comments/103871767","html_url":"https://github.com/iron-io/iron_worker_ruby_ng/issues/132#issuecomment-103871767","issue_url":"https://api.github.com/repos/iron-io/iron_worker_ruby_ng/issues/132","id":103871767,"user":{"login":"niraltmark","id":721007,"avatar_url":"https://avatars.githubusercontent.com/u/721007?v=3","gravatar_id":"","url":"https://api.github.com/users/niraltmark","html_url":"https://github.com/niraltmark","followers_url":"https://api.github.com/users/niraltmark/followers","following_url":"https://api.github.com/users/niraltmark/following{/other_user}","gists_url":"https://api.github.com/users/niraltmark/gists{/gist_id}","starred_url":"https://api.github.com/users/niraltmark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/niraltmark/subscriptions","organizations_url":"https://api.github.com/users/niraltmark/orgs","repos_url":"https://api.github.com/users/niraltmark/repos","events_url":"https://api.github.com/users/niraltmark/events{/privacy}","received_events_url":"https://api.github.com/users/niraltmark/received_events","type":"User","site_admin":false},"created_at":"2015-05-20T12:47:12Z","updated_at":"2015-05-20T12:47:12Z","body":"It seems to me that we are speaking in different languages.\r\n\r\nThis is what you wrote \"Just add this line to your .worker file  set_env 'VARIABLE_NAME', 'VARIABLE_VALUE'\"\r\nAnd now you wrote that the .worker shouldn't contains the values? So where and how can we set the values?"}}