lib/fulmar/infrastructure/service/flow_service.rb in fulmar-1.2.0 vs lib/fulmar/infrastructure/service/flow_service.rb in fulmar-1.2.1
- old
+ new
@@ -6,10 +6,11 @@
# @param [Fulmar::Infrastructure::Service::ShellService] shell
# @param [Hash] config
def initialize(shell, config)
@remote_shell = shell
@config = config
+ test_config
end
def cache_clear
execute('flow:cache:flush --force')
end
@@ -33,9 +34,13 @@
protected
def export_filename
"export_#{Time.now.strftime('%Y-%m-%dT%H%M%S')}.xml"
+ end
+
+ def test_config
+ fail 'Neos environment is not set.' unless @config[:neos] && @config[:neos][:environment]
end
end
end
end
end