lib/git_wrapper/commands/checkout.rb in git_wrapper-1.0.2 vs lib/git_wrapper/commands/checkout.rb in git_wrapper-1.0.3
- old
+ new
@@ -1,21 +1,21 @@
-module GitWrapper
- module Commands
- class Checkout < Git
-
- def commit(commit)
- @commit = commit
- self
- end
-
- def into(new_branch)
- @new_branch = new_branch
- self
- end
-
- def command
- "checkout #{@commit} #{@new_branch.nil? ? '' : "-b #{@new_branch}" }"
- end
-
- end
- end
+module GitWrapper
+ module Commands
+ class Checkout < Git
+
+ def commit(commit)
+ @commit = commit
+ self
+ end
+
+ def into(new_branch)
+ @new_branch = new_branch
+ self
+ end
+
+ def command
+ "checkout #{@commit} #{@new_branch.nil? ? '' : "-b #{@new_branch}" }"
+ end
+
+ end
+ end
end
\ No newline at end of file