Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Platform framework and detect DSL #209

Merged
merged 2 commits into from
Nov 15, 2017
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions lib/train.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
require 'train/options'
require 'train/plugins'
require 'train/errors'
require 'train/platforms'
require 'uri'

module Train
Expand Down
3 changes: 3 additions & 0 deletions lib/train/errors.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,7 @@ class ClientError < ::StandardError; end
# Base exception class for all exceptions that are caused by other failures
# in the transport layer.
class TransportError < ::StandardError; end

# Exception for when no platform can be detected
class PlatformDetectionFailed < ::StandardError; end
end
1 change: 0 additions & 1 deletion lib/train/extras.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

module Train::Extras
require 'train/extras/command_wrapper'
require 'train/extras/os_common'
require 'train/extras/stat'

CommandResult = Struct.new(:stdout, :stderr, :exit_status)
Expand Down
60 changes: 0 additions & 60 deletions lib/train/extras/linux_lsb.rb

This file was deleted.

151 changes: 0 additions & 151 deletions lib/train/extras/os_common.rb

This file was deleted.

34 changes: 0 additions & 34 deletions lib/train/extras/os_detect_arista_eos.rb

This file was deleted.

40 changes: 0 additions & 40 deletions lib/train/extras/os_detect_darwin.rb

This file was deleted.

22 changes: 0 additions & 22 deletions lib/train/extras/os_detect_esx.rb

This file was deleted.

Loading