{"action":"created","issue":{"url":"https://api.github.com/repos/ManageIQ/manageiq/issues/8010","repository_url":"https://api.github.com/repos/ManageIQ/manageiq","labels_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/8010/labels{/name}","comments_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/8010/comments","events_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/8010/events","html_url":"https://github.com/ManageIQ/manageiq/pull/8010","id":148809993,"number":8010,"title":"Rake task git import","user":{"login":"mkanoor","id":6452699,"avatar_url":"https://avatars.githubusercontent.com/u/6452699?v=3","gravatar_id":"","url":"https://api.github.com/users/mkanoor","html_url":"https://github.com/mkanoor","followers_url":"https://api.github.com/users/mkanoor/followers","following_url":"https://api.github.com/users/mkanoor/following{/other_user}","gists_url":"https://api.github.com/users/mkanoor/gists{/gist_id}","starred_url":"https://api.github.com/users/mkanoor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mkanoor/subscriptions","organizations_url":"https://api.github.com/users/mkanoor/orgs","repos_url":"https://api.github.com/users/mkanoor/repos","events_url":"https://api.github.com/users/mkanoor/events{/privacy}","received_events_url":"https://api.github.com/users/mkanoor/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ManageIQ/manageiq/labels/automate","name":"automate","color":"5319e7"},{"url":"https://api.github.com/repos/ManageIQ/manageiq/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-04-16T02:40:04Z","updated_at":"2016-04-16T02:47:02Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/ManageIQ/manageiq/pulls/8010","html_url":"https://github.com/ManageIQ/manageiq/pull/8010","diff_url":"https://github.com/ManageIQ/manageiq/pull/8010.diff","patch_url":"https://github.com/ManageIQ/manageiq/pull/8010.patch"},"body":"Depends on PR https://github.com/ManageIQ/manageiq/pull/8001\r\n\r\nRake task to import from Git Repository\r\n    \r\n    Import based on a tag or a branch name.\r\n    If any domain exists, it will be deleted and recreated\r\n    The domain will be marked as read only\r\n    \r\n    e.g.\r\n    bin/rake evm:automate:import\r\n    GIT_URL=https://github.com/ramrexx/CloudFormsPOC REF=origin/5.3\r\n    PREVIEW=false USERID=fred PASSWORD=password REF_TYPE=branch\r\n    \r\n    PARAMETERS:\r\n    \r\n    GIT_URL => HTTP or HTTPS URL for Git Repository\r\n    USERID  => User\r\n    PASSWORD => password\r\n    REF => The name of the reference to use (branch name or tag name)\r\n    default => origin/master\r\n    REF_TYPE => The type of reference (branch or tag) default: branch"},"comment":{"url":"https://api.github.com/repos/ManageIQ/manageiq/issues/comments/210722445","html_url":"https://github.com/ManageIQ/manageiq/pull/8010#issuecomment-210722445","issue_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/8010","id":210722445,"user":{"login":"miq-bot","id":7806257,"avatar_url":"https://avatars.githubusercontent.com/u/7806257?v=3","gravatar_id":"","url":"https://api.github.com/users/miq-bot","html_url":"https://github.com/miq-bot","followers_url":"https://api.github.com/users/miq-bot/followers","following_url":"https://api.github.com/users/miq-bot/following{/other_user}","gists_url":"https://api.github.com/users/miq-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/miq-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miq-bot/subscriptions","organizations_url":"https://api.github.com/users/miq-bot/orgs","repos_url":"https://api.github.com/users/miq-bot/repos","events_url":"https://api.github.com/users/miq-bot/events{/privacy}","received_events_url":"https://api.github.com/users/miq-bot/received_events","type":"User","site_admin":false},"created_at":"2016-04-16T02:47:01Z","updated_at":"2016-04-16T02:47:01Z","body":"<rubocop />Checked commits https://github.com/mkanoor/manageiq/compare/693d65016f6228962ab9aec0d76996956213e9f7~...ad6d6d60c49636d69d15daa9c89270a332b40fdd with ruby 2.2.3, rubocop 0.37.2, and haml-lint 0.16.1\n5 files checked, 16 offenses detected\n\n**lib/miq_automation_engine/models/miq_ae_domain.rb**\n- [ ] :small_blue_diamond: - [Line 56](https://github.com/mkanoor/manageiq/blob/ad6d6d60c49636d69d15daa9c89270a332b40fdd/lib/miq_automation_engine/models/miq_ae_domain.rb#L56), Col 3 - [Metrics/AbcSize](http://rubydoc.info/gems/rubocop/0.37.2/RuboCop/Cop/Metrics/AbcSize) - Assignment Branch Condition size for import_git_repo is too high. [18.55/15]\n\n**lib/tasks/evm_automate.rake**\n- [ ] :large_orange_diamond: - [Line 36](https://github.com/mkanoor/manageiq/blob/ad6d6d60c49636d69d15daa9c89270a332b40fdd/lib/tasks/evm_automate.rake#L36), Col 7 - [Style/CommentAnnotation](http://rubydoc.info/gems/rubocop/0.37.2/RuboCop/Cop/Style/CommentAnnotation) - Annotation keywords like `TODO` should be all upper case, followed by a colon, and a space, then a note describing the problem.\n- [ ] :large_orange_diamond: - [Line 40](https://github.com/mkanoor/manageiq/blob/ad6d6d60c49636d69d15daa9c89270a332b40fdd/lib/tasks/evm_automate.rake#L40), Col 67 - [Style/WordArray](http://rubydoc.info/gems/rubocop/0.37.2/RuboCop/Cop/Style/WordArray) - Use `%w` or `%W` for an array of words.\n- [ ] :large_orange_diamond: - [Line 42](https://github.com/mkanoor/manageiq/blob/ad6d6d60c49636d69d15daa9c89270a332b40fdd/lib/tasks/evm_automate.rake#L42), Col 68 - [Style/WordArray](http://rubydoc.info/gems/rubocop/0.37.2/RuboCop/Cop/Style/WordArray) - Use `%w` or `%W` for an array of words.\n- [ ] :large_orange_diamond: - [Line 84](https://github.com/mkanoor/manageiq/blob/ad6d6d60c49636d69d15daa9c89270a332b40fdd/lib/tasks/evm_automate.rake#L84), Col 3 - [Style/IndentationConsistency](http://rubydoc.info/gems/rubocop/0.37.2/RuboCop/Cop/Style/IndentationConsistency) - Inconsistent indentation detected.\n- [ ] :large_orange_diamond: - [Line 85](https://github.com/mkanoor/manageiq/blob/ad6d6d60c49636d69d15daa9c89270a332b40fdd/lib/tasks/evm_automate.rake#L85), Col 1 - [Style/IndentationWidth](http://rubydoc.info/gems/rubocop/0.37.2/RuboCop/Cop/Style/IndentationWidth) - Use 2 (not 4) spaces for indentation.\n- [ ] :large_orange_diamond: - [Line 87](https://github.com/mkanoor/manageiq/blob/ad6d6d60c49636d69d15daa9c89270a332b40fdd/lib/tasks/evm_automate.rake#L87), Col 3 - [Style/IndentationWidth](http://rubydoc.info/gems/rubocop/0.37.2/RuboCop/Cop/Style/IndentationWidth) - Use 2 (not 4) spaces for indentation.\n- [ ] :large_orange_diamond: - [Line 194](https://github.com/mkanoor/manageiq/blob/ad6d6d60c49636d69d15daa9c89270a332b40fdd/lib/tasks/evm_automate.rake#L194), Col 32 - [Style/ExtraSpacing](http://rubydoc.info/gems/rubocop/0.37.2/RuboCop/Cop/Style/ExtraSpacing) - Unnecessary spacing detected.\n- [ ] :large_orange_diamond: - [Line 194](https://github.com/mkanoor/manageiq/blob/ad6d6d60c49636d69d15daa9c89270a332b40fdd/lib/tasks/evm_automate.rake#L194), Col 35 - [Style/SpaceAroundOperators](http://rubydoc.info/gems/rubocop/0.37.2/RuboCop/Cop/Style/SpaceAroundOperators) - Operator `=` should be surrounded by a single space.\n- [ ] :large_orange_diamond: - [Line 195](https://github.com/mkanoor/manageiq/blob/ad6d6d60c49636d69d15daa9c89270a332b40fdd/lib/tasks/evm_automate.rake#L195), Col 38 - [Style/ExtraSpacing](http://rubydoc.info/gems/rubocop/0.37.2/RuboCop/Cop/Style/ExtraSpacing) - Unnecessary spacing detected.\n- [ ] :large_orange_diamond: - [Line 195](https://github.com/mkanoor/manageiq/blob/ad6d6d60c49636d69d15daa9c89270a332b40fdd/lib/tasks/evm_automate.rake#L195), Col 40 - [Style/SpaceAroundOperators](http://rubydoc.info/gems/rubocop/0.37.2/RuboCop/Cop/Style/SpaceAroundOperators) - Operator `=` should be surrounded by a single space.\n- [ ] :small_blue_diamond: - [Line 35](https://github.com/mkanoor/manageiq/blob/ad6d6d60c49636d69d15daa9c89270a332b40fdd/lib/tasks/evm_automate.rake#L35), Col 3 - [Metrics/AbcSize](http://rubydoc.info/gems/rubocop/0.37.2/RuboCop/Cop/Metrics/AbcSize) - Assignment Branch Condition size for import_git_repo is too high. [28.44/15]\n- [ ] :small_blue_diamond: - [Line 61](https://github.com/mkanoor/manageiq/blob/ad6d6d60c49636d69d15daa9c89270a332b40fdd/lib/tasks/evm_automate.rake#L61), Col 3 - [Metrics/AbcSize](http://rubydoc.info/gems/rubocop/0.37.2/RuboCop/Cop/Metrics/AbcSize) - Assignment Branch Condition size for validate_refs is too high. [19.65/15]\n- [ ] :small_blue_diamond: - [Line 112](https://github.com/mkanoor/manageiq/blob/ad6d6d60c49636d69d15daa9c89270a332b40fdd/lib/tasks/evm_automate.rake#L112), Col 121 - [Metrics/LineLength](http://rubydoc.info/gems/rubocop/0.37.2/RuboCop/Cop/Metrics/LineLength) - Line is too long. [137/120]\n\n**spec/lib/miq_automation_engine/models/miq_ae_domain_spec.rb**\n- [ ] :large_orange_diamond: - [Line 195](https://github.com/mkanoor/manageiq/blob/ad6d6d60c49636d69d15daa9c89270a332b40fdd/spec/lib/miq_automation_engine/models/miq_ae_domain_spec.rb#L195), Col 40 - [Style/SpaceInsideHashLiteralBraces](http://rubydoc.info/gems/rubocop/0.37.2/RuboCop/Cop/Style/SpaceInsideHashLiteralBraces) - Space inside } detected.\n- [ ] :large_orange_diamond: - [Line 215](https://github.com/mkanoor/manageiq/blob/ad6d6d60c49636d69d15daa9c89270a332b40fdd/spec/lib/miq_automation_engine/models/miq_ae_domain_spec.rb#L215), Col 1 - [Style/EmptyLines](http://rubydoc.info/gems/rubocop/0.37.2/RuboCop/Cop/Style/EmptyLines) - Extra blank line detected.\n"}}