{"action":"created","issue":{"url":"https://api.github.com/repos/jordansissel/pleaserun/issues/83","labels_url":"https://api.github.com/repos/jordansissel/pleaserun/issues/83/labels{/name}","comments_url":"https://api.github.com/repos/jordansissel/pleaserun/issues/83/comments","events_url":"https://api.github.com/repos/jordansissel/pleaserun/issues/83/events","html_url":"https://github.com/jordansissel/pleaserun/issues/83","id":88866695,"number":83,"title":"`-p upstart` seems requires version?","user":{"login":"solarce","id":9660,"avatar_url":"https://avatars.githubusercontent.com/u/9660?v=3","gravatar_id":"","url":"https://api.github.com/users/solarce","html_url":"https://github.com/solarce","followers_url":"https://api.github.com/users/solarce/followers","following_url":"https://api.github.com/users/solarce/following{/other_user}","gists_url":"https://api.github.com/users/solarce/gists{/gist_id}","starred_url":"https://api.github.com/users/solarce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/solarce/subscriptions","organizations_url":"https://api.github.com/users/solarce/orgs","repos_url":"https://api.github.com/users/solarce/repos","events_url":"https://api.github.com/users/solarce/events{/privacy}","received_events_url":"https://api.github.com/users/solarce/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-16T23:32:42Z","updated_at":"2015-06-16T23:47:31Z","closed_at":null,"body":"It seems like `-p upstart` requires a version to be set?\r\n\r\nWhen I run try without one (I guess assuming it would default to some version), I get \r\n\r\n```\r\n~/code pleaserun -p upstart /usr/bin/af\r\nNo name given, setting reasonable default based on the executable {:name=>\"af\", :level=>:warn}\r\n/home/solarce/.gem/ruby/2.2.0/gems/pleaserun-0.0.16/lib/pleaserun/platform/base.rb:168:in `render_template': Could not find template file for 'init.conf'. Tried all of these: [\"/home/solarce/.gem/ruby/2.2.0/gems/pleaserun-0.0.16/lib/pleaserun/platform/../../../templates/upstart/default/init.conf\", \"/home/solarce/.gem/ruby/2.2.0/gems/pleaserun-0.0.16/lib/pleaserun/platform/../../../templates/upstart/default/init.conf\", \"/home/solarce/.gem/ruby/2.2.0/gems/pleaserun-0.0.16/lib/pleaserun/platform/../../../templates/upstart/init.conf\"] (PleaseRun::Platform::Base::InvalidTemplate)\r\n        from /home/solarce/.gem/ruby/2.2.0/gems/pleaserun-0.0.16/lib/pleaserun/platform/upstart.rb:9:in `block in files'\r\n        from /home/solarce/.gem/ruby/2.2.0/gems/pleaserun-0.0.16/lib/pleaserun/installer.rb:18:in `each'\r\n        from /home/solarce/.gem/ruby/2.2.0/gems/pleaserun-0.0.16/lib/pleaserun/installer.rb:18:in `install_files'\r\n        from /home/solarce/.gem/ruby/2.2.0/gems/pleaserun-0.0.16/lib/pleaserun/cli.rb:177:in `run_human'\r\n        from /home/solarce/.gem/ruby/2.2.0/gems/pleaserun-0.0.16/lib/pleaserun/cli.rb:128:in `execute'\r\n        from /usr/lib/ruby/gems/2.2.0/gems/clamp-0.6.5/lib/clamp/command.rb:67:in `run'\r\n        from /usr/lib/ruby/gems/2.2.0/gems/clamp-0.6.5/lib/clamp/command.rb:132:in `run'\r\n        from /home/solarce/.gem/ruby/2.2.0/gems/pleaserun-0.0.16/bin/pleaserun:6:in `<top (required)>'\r\n        from /home/solarce/.gem/ruby/2.2.0/bin/pleaserun:23:in `load'\r\n        from /home/solarce/.gem/ruby/2.2.0/bin/pleaserun:23:in `<main>'\r\n```\r\n\r\nBut if I use a version it's happy\r\n\r\n```\r\n~/code pleaserun -p upstart -v 1.5 /usr/bin/af\r\nNo name given, setting reasonable default based on the executable {:name=>\"af\", :level=>:warn}\r\nWriting file {:destination=>\"/tmp/studtmp-80f484b4d889d2f6416c833632734dca626cbf197aad30f42c592728cb88/etc/init/af.conf\"}\r\n```"},"comment":{"url":"https://api.github.com/repos/jordansissel/pleaserun/issues/comments/112604389","html_url":"https://github.com/jordansissel/pleaserun/issues/83#issuecomment-112604389","issue_url":"https://api.github.com/repos/jordansissel/pleaserun/issues/83","id":112604389,"user":{"login":"jordansissel","id":131818,"avatar_url":"https://avatars.githubusercontent.com/u/131818?v=3","gravatar_id":"","url":"https://api.github.com/users/jordansissel","html_url":"https://github.com/jordansissel","followers_url":"https://api.github.com/users/jordansissel/followers","following_url":"https://api.github.com/users/jordansissel/following{/other_user}","gists_url":"https://api.github.com/users/jordansissel/gists{/gist_id}","starred_url":"https://api.github.com/users/jordansissel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jordansissel/subscriptions","organizations_url":"https://api.github.com/users/jordansissel/orgs","repos_url":"https://api.github.com/users/jordansissel/repos","events_url":"https://api.github.com/users/jordansissel/events{/privacy}","received_events_url":"https://api.github.com/users/jordansissel/received_events","type":"User","site_admin":false},"created_at":"2015-06-16T23:47:31Z","updated_at":"2015-06-16T23:47:31Z","body":"Yeah, version is required. The error you get is a kind of relic from The Before Time when I had some other random ideas like default versions, etc. I'll fix that. <3"}}