Class: MarkVersionCli

Inherits:
Thor
  • Object
show all
Defined in:
lib/mark_version/mark_version_cli.rb

Instance Method Summary collapse

Instance Method Details

#increment_release_candidateObject



35
36
37
# File 'lib/mark_version/mark_version_cli.rb', line 35

def increment_release_candidate
  Project.increment_release_candidate
end

#initObject



5
6
7
# File 'lib/mark_version/mark_version_cli.rb', line 5

def init
  Project.init
end

#majorObject



20
21
22
# File 'lib/mark_version/mark_version_cli.rb', line 20

def major
  Project.major
end

#major_release_candidateObject



30
31
32
# File 'lib/mark_version/mark_version_cli.rb', line 30

def major_release_candidate
  Project.major_release_candidate
end

#minorObject



15
16
17
# File 'lib/mark_version/mark_version_cli.rb', line 15

def minor
  Project.minor
end

#minor_release_candidateObject



25
26
27
# File 'lib/mark_version/mark_version_cli.rb', line 25

def minor_release_candidate
  Project.minor_release_candidate
end

#patchObject



10
11
12
# File 'lib/mark_version/mark_version_cli.rb', line 10

def patch
  Project.patch
end

#releaseObject



40
41
42
# File 'lib/mark_version/mark_version_cli.rb', line 40

def release
  Project.release
end

#showObject



46
47
48
49
50
51
52
# File 'lib/mark_version/mark_version_cli.rb', line 46

def show
  if options[:dev]
    puts Project.dev_version
  else
    puts Project.version
  end
end