lib/jets/commands/sequence.rb in jets-2.3.19 vs lib/jets/commands/sequence.rb in jets-3.0.0
- old
+ new
@@ -8,9 +8,15 @@
def self.source_root
File.expand_path("templates/skeleton", File.dirname(__FILE__))
end
private
+ def jets_minor_version
+ md = Jets::VERSION.match(/(\d+)\.(\d+)\.\d+/)
+ major, minor = md[1], md[2]
+ [major, minor, '0'].join('.')
+ end
+
def clone_project
unless git_installed?
abort "Unable to detect git installation on your system. Git needs to be installed in order to use the --repo option."
end