Skip to content

Commit c295b31

Browse files
author
Hemant Kumar
committed
Merge pull request #144 from PragTob/support-linux-mint
Support Linux Mint
2 parents 0f2a6df + 35a7105 commit c295b31

File tree

3 files changed

+16
-4
lines changed

3 files changed

+16
-4
lines changed

lib/invoker/power/setup/distro/base.rb

+3
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ def self.distro_installer
1919
when "Debian"
2020
require "invoker/power/setup/distro/debian"
2121
Debian.new
22+
when "LinuxMint"
23+
require "invoker/power/setup/distro/mint"
24+
Mint.new
2225
else
2326
raise "Your selected distro is not supported by Invoker"
2427
end
+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
require "invoker/power/setup/distro/ubuntu"
2+
3+
module Invoker
4+
module Power
5+
module Distro
6+
class Mint < Ubuntu
7+
end
8+
end
9+
end
10+
end

lib/invoker/power/setup/distro/ubuntu.rb

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1+
require "invoker/power/setup/distro/debian"
2+
13
module Invoker
24
module Power
35
module Distro
4-
class Ubuntu < Base
5-
def install_required_software
6-
system("apt-get --assume-yes install dnsmasq rinetd")
7-
end
6+
class Ubuntu < Debian
87
end
98
end
109
end

0 commit comments

Comments
 (0)